Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ResetInertiaTensor()

Reset the inertia tensor value and rotation.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public void ResetInertiaTensor()

Remarks

Computes the inertia tensor, and the inertia tensor rotation from the colliders attached to this rigidbody and stores it. After calling this function, the inertia tensor and tensor rotation will be updated automatically after any modification of the rigidbody.