Mesh offset from bounding box

User avatar
KTCopache
Posts: 6
Joined: Thu Aug 04, 2011 12:46 am

Mesh offset from bounding box

Post by KTCopache »

I'm trying to set up a rigid body with a bounding box collision shape (btBoxShape), but the bounding box seems to be offset from the object, around its center of mass instead of the object I guess. (I think it's the same problem as this: http://bulletphysics.org/Bullet/phpBB3/ ... 59&start=0 ) How do I offset the bounding box to its correct position?

The user manual says something about using a btCompoundShape's child transform, but I don't know how those work.

Also: is center of mass the same as the object's local origin (so the world transform position of a rigid body is the same as the world-space position of its center of mass)?