ドキュメント

Unity Engine

Unity Engine

inertia

The Rigidbody's resistance to changes in angular velocity (rotation).
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public float inertia { get; set; }

Remarks

Rotational inertia controls a Rigidbody's resistance to changes in Rigidbody2D.angularVelocity. It is similar to how Rigidbody2D.mass controls a Rigidbody's resistance to changes in Rigidbody2D.linearVelocity.
The rotational inertia is automatically calculated based on the Rigidbody's Rigidbody2D.mass position relative to the Rigidbody2D.centerOfMass. It can also be specified explicitly by setting this property in the same way Rigidbody2D.mass can be set.