Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


rotationalInertia

The rotational inertia of the body, usually in kg*m^2. This can be accessed as a union of _mass, _rotationalInertia and _localCenterOfMass using _massConfiguration. When this value is overridden with _massOverride, setting it authors the override value, which persists across mass recalculations.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public float rotationalInertia { get; set; }