Source Academy Modules
    Preparing search index...

    Function set_velocity

    • Set the (linear) 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 change velocity for.

      • velocity: Vector3

        The new velocity for the rigidbody attached on the GameObject.

      Returns void