mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 06:53:52 +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];
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue