Source Academy Modules
    Preparing search index...

    Function set_drag

    • Set the drag (similar to air resistance) the rigidbody attached on the game object.

      By default the drag is zero.

      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 drag for.

      • value: number

        The value of the new drag.

      Returns void