Hello, I am trying to manually update the position of a btCollisionObject in my btCollisionWorld. I am proceeding as follows:
Code: Select all
mObject->setWorldTransform( btTransform(orientation, origin ));
mObject->activate(true);
I would expect the attached btCollisionShape to change its position together with the btCollisionObject, however when I ask Bullet an axis-aligned bounding box in world space:
Code: Select all
mObject->getCollisionShape()->getAabb()->(identity, min, max);
I always get the bounding box relative to the initial position of the object, rather than the newest. I have tried calling:
Code: Select all
physicalWorld->updateAabbs();
physicalWorld->updateSingleAabb(mObject);
But without any luck. Is there something I am missing?
Thank you
Tunnuz