I have to manage simple bodies represented by compound convex shapes.
I think I'm not using correctly motion states, the collisions are well detected, but responses are totally random
Here's what I do to get data :
Code: Select all
btTransform t;
body->getMotionState()->getWorldTransform(t);
btVector3 o=t.getOrigin();
btQuaternion q=t.getRotation();
Code: Select all
btTransform t;
t.setIdentity();
t.setOrigin(...);
t.setRotation(...);
body->getMotionState()->setWorldTransform(t);
Thanks