Source Academy Modules
    Preparing search index...

    Function set_mass

    • Set the mass 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.

      Parameters

      • gameObjectIdentifier: GameObjectIdentifier

        The identifier for the GameObject that you want to change mass for.

      • mass: number

        The value for the new mass.

      Returns void