Page 1 of 1

find center of mass

Posted: Tue Oct 19, 2021 12:51 pm
by Mark97
How can one find the center of mass of an object (.obj file) in PyBullet?
getDynamicsInfo() doesn't return it, nor does getCollisionShapeData(), and resetBasePositionAndOrientation() uses the link position, which is assuredly not the center of mass. applyExternalForce() also uses the link position, resulting in rotating objects, instead of linear acceleration.

Any help is appreciated!