Source Academy Modules
    Preparing search index...

    Function get_angular_velocity

    • Returns the angular velocity of the rigidbody attached on the game object.

      Usage of all physics functions under the Physics - Rigidbody category requires calling apply_rigidbody first on the applied game objects.

      **2D Mode Special: **In 2D mode there is no angular velocity on X nor Y axis, so in the X and Y values in the returned Vector3 will always be zero.

      Parameters

      • gameObjectIdentifier: GameObjectIdentifier

        The identifier for the GameObject that you want to get angular velocity for.

      Returns Vector3

      the angular velocity at this moment represented in a Vector3.