find center of mass

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
Mark97
Posts: 25
Joined: Sun Sep 26, 2021 12:38 pm

find center of mass

Post 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!
Post Reply