• Preparing search index...
  • The search index is not available
Source Academy Modules
  • Source Academy Modules
  • unity_academy
  • apply_rigidbody

Function apply_rigidbody

  • apply_rigidbody(gameObjectIdentifier): void
  • Apply rigidbody (2D or 3D based on the current dimension mode) to the given GameObject to use Unity's physics engine.

    All other functions under the Physics - Rigidbody category require calling this function first on the applied GameObjects.

    For more information, see

    • https://docs.unity3d.com/ScriptReference/Rigidbody.html (For 3D Mode)
    • https://docs.unity3d.com/ScriptReference/Rigidbody2D.html (For 2D Mode)

    Parameters

    • gameObjectIdentifier: GameObjectIdentifier

      The identifier for the GameObject that you want to apply rigidbody on.

    Returns void

    • Defined in bundles/unity_academy/functions.ts:568

Settings

Member Visibility

Theme

Source Academy Modules
  • Loading...

Generated using TypeDoc