Page 1 of 1

Simple problem with Ogre

Posted: Thu May 10, 2007 9:12 pm
by apokalypsadestroyer
I use the Bullet with Ogre via OgreBullet, and i set Box collision shape for ogre node, but i need to move the center of shape to different position in the node, can anyone help me?

sory for my bad english, im from Czech republic

Posted: Thu May 10, 2007 10:47 pm
by Erwin Coumans
You can shift the center of mass, by using a btCompoundShape:

Create a new btCompoundShape, and add the box shape as childshape, with a btTransform offset. Make sure to initialize the offset properly, not just setting the origin, so use offset.setIdentity().

Hope this helps,
Erwin

Posted: Fri May 11, 2007 9:21 am
by apokalypsadestroyer
Thank you much Erwin, it works 8) :D