Rigidbody.worldCenterOfMass Manual     Reference     Scripting  
Scripting > Runtime Classes > Rigidbody
Rigidbody.worldCenterOfMass

var worldCenterOfMass : Vector3

Description

The center of mass of the rigidbody in world space (Read Only).

JavaScript
Debug.Log(rigidbody.worldCenterOfMass);