- Home /
Question by
SaintMaster · Apr 21, 2014 at 09:15 AM ·
2dphysics2d2d-physicsphysiccenterofmass
Where is mass center of Rigidbody2D placed?
Center of mass is an arithmetic average of colliders' centers, is not it?
Comment
Best Answer
Answer by Fappp · Apr 21, 2014 at 10:18 AM
At the center of the mesh ideally, it will generate from the colliders.
I messed around with it a little and it looks like the centre of mass is calculated based on the vertices of the colliders. Take them all and calc the average vector3, this is the centre of mass :)