Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ResetCenterOfMass()

Resets the center of mass of the articulation body.
Read time 1 minuteLast updated 10 days ago

Definition

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

Remarks

Computes the actual center of mass of the articulation body from all the attached colliders and stores it. When you call this function, the center of mass is automatically updated after any modification to the articulation body.