1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-23 17:53:57 +00:00

fix coc bug

This commit is contained in:
gugus 2011-02-28 19:43:11 +01:00
parent ab1fa41c24
commit 2129566450

View file

@ -219,6 +219,13 @@ namespace Physic
RigidBody* body = RigidBodyMap[name]; RigidBody* body = RigidBodyMap[name];
if(body != NULL) if(body != NULL)
{ {
broadphase->getOverlappingPairCache()->removeOverlappingPairsContainingProxy(body->getBroadphaseProxy(),dispatcher);
std::map<std::string,PhysicActor*>::iterator it = PhysicActorMap.begin();
for(;it!=PhysicActorMap.end();it++)
{
it->second->internalGhostObject->getOverlappingPairCache()->removeOverlappingPairsContainingProxy(body->getBroadphaseProxy(),dispatcher);
it->second->externalGhostObject->getOverlappingPairCache()->removeOverlappingPairsContainingProxy(body->getBroadphaseProxy(),dispatcher);
}
dynamicsWorld->removeRigidBody(RigidBodyMap[name]); dynamicsWorld->removeRigidBody(RigidBodyMap[name]);
} }
} }