Source Academy Modules
    Preparing search index...

    Function set_use_gravity

    • Set whether the rigidbody attached on the game object should calculate for gravity.

      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 enable/disable gravity on its rigidbody.

      • useGravity: boolean

        Set to true if you want gravity to be applied on this rigidbody, false otherwise.

      Returns void