Move _hasOutgoingChanges in onSubStep to previous location

This commit is contained in:
Ryan Huffman 2015-10-29 10:19:18 -07:00
parent 913026280c
commit 49877c2dff

View file

@ -253,7 +253,6 @@ void PhysicsEngine::stepSimulation() {
auto onSubStep = [this]() {
updateContactMap();
_hasOutgoingChanges = true;
};
int numSubsteps = _dynamicsWorld->stepSimulation(timeStep, PHYSICS_ENGINE_MAX_NUM_SUBSTEPS, PHYSICS_ENGINE_FIXED_SUBSTEP, onSubStep);
@ -265,6 +264,8 @@ void PhysicsEngine::stepSimulation() {
if (_characterController) {
_characterController->postSimulation();
}
_hasOutgoingChanges = true;
}
}