Source Academy Modules
    Preparing search index...

    Function get_velocity

    • Returns the velocity of the rigidbody attached on the GameObject.

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

      Parameters

      • gameObjectIdentifier: GameObjectIdentifier

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

      Returns Vector3

      the velocity at this moment represented in a Vector3.