Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


inertia

The Rigidbody's resistance to changes in angular velocity (rotation).
Read time 1 minuteLast updated 10 days ago

Definition

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

Remarks

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