Code: Select all
PhysicsManager::getInstance()->getDynamicsWorld()->addCollisionObject(
ghostObject, btBroadphaseProxy::CharacterFilter, btBroadphaseProxy::AllFilter
);
PhysicsManager::getInstance()->getDynamicsWorld()->addAction( controller );
Code: Select all
kinematicBody->setCollisionFlags( kinematicBody->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT );
kinematicBody->setActivationState( DISABLE_DEACTIVATION );
Finally, the problem that I'm facing is that, when the GhostObject is moving (active) the kinematic objects collides perfectly with'em, but when the GhostObject has stopped moving, the kinematic objects just pass through them, they only collide with the stuff beyond the GhostObject (like the static scenario object).
Can anybody help me solve this issue?
Thanks in advance,
Aymar.