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:
parent
ab1fa41c24
commit
2129566450
1 changed files with 7 additions and 0 deletions
|
@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue