docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Rotate 2D

    Menu Path : Operator > Math > Vector

    The Rotate 2D Operator performs a 2D rotation of an input point and a given angle around a given center.

    Operator properties

    Input Type Description
    Position Vector2 The point to rotate.
    Rotation Center Vector2 The point to rotate Position around.
    Angle float The angle of rotation to use, in radians.
    Output Type Description
    Position Vector2 The rotated position.
    In This Article
    • Operator properties
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)