### Center of mass computation for btGImpactMeshShape

Posted:

**Mon Mar 17, 2014 11:27 am**Hi all,

I'm dealing with collisions of nonconvex rigid bodies, using btGImpactMeshShape.

BtGImpactMeshShape expects the origin to be the Center of Mass.

I have some models which don't meet this requirment, but I would like to use them.

Is there a function in bullet to compute the center of mass(I haven't found one) or do you know any other tools to compute the center of mass of surface meshes?

Thanks a lot!

I'm dealing with collisions of nonconvex rigid bodies, using btGImpactMeshShape.

BtGImpactMeshShape expects the origin to be the Center of Mass.

I have some models which don't meet this requirment, but I would like to use them.

Is there a function in bullet to compute the center of mass(I haven't found one) or do you know any other tools to compute the center of mass of surface meshes?

Thanks a lot!