compute collision events inside lock to avoid a rare crash

This commit is contained in:
Seth Alves 2015-04-22 10:51:45 -07:00
parent 3f705f3172
commit 32673efc80

View file

@ -348,10 +348,10 @@ void PhysicsEngine::stepSimulation() {
_characterController->postSimulation();
}
computeCollisionEvents();
unlock();
_entityTree->unlock();
computeCollisionEvents();
}
}