BoxCollisionShape isn't centered

AHelper2

27-10-2010 14:42:41

Hello! After fixing my previous problems, I have OgreBullet working 8)

Now, I am having a problem making a BoxCollisionShape for a mesh who's mesh center is not the real center. I know that for a rigid body, you can pass a Vector3 position in .setShape, but this moves both objects. Is it needed to make a second node, or can I change the center somehow?

AHelper2

27-10-2010 21:36:54

Solved it myself, oops :-P

Bullet doesn't support a Box collision shape that isn't at the origin. The only way is to attach the box to a compound collision shape with an offset.