Source Academy Modules
    Preparing search index...

    Function get_mass

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

      Returns number

      The mass of the rigidbody attached on the GameObject