Hi,
I want to have collision between a keyed object and a dynamic object but it doesnt seem to work. If the repulsion factor is higher than 0 the dynamic object moves when the keyed object hits it, which means the collision detection works.
For the dynamic object :
setActivationState(ACTIVE_TAG);
getMotionState()->setDynamic(true);
For the keyed object
setCollisionFlags(getCollisionFlags() & ~btCollisionObject::CF_KINEMATIC_OBJECT);
setActivationState(DISABLE_DEACTIVATION);
getMotionState()->setDynamic(false);
Any idea why it doesnt work ?
Thanks
Vincent
Kinematic object doesn't collide with dynamic object
-
Vince
- Posts: 11
- Joined: Fri Oct 01, 2010 11:40 am