Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ResetCenterOfMass()

Reset the center of mass of the rigidbody.
Read time 1 minuteLast updated 12 days ago

Definition

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

Remarks

Computes the actual center of mass of the rigidbody from all the colliders attached, and stores it. After calling this function, the center of mass will get updated automatically after any modification to the rigidbody.