mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:49:24 +02:00
Move _hasOutgoingChanges in onSubStep to previous location
This commit is contained in:
parent
913026280c
commit
49877c2dff
1 changed files with 2 additions and 1 deletions
|
@ -253,7 +253,6 @@ void PhysicsEngine::stepSimulation() {
|
||||||
|
|
||||||
auto onSubStep = [this]() {
|
auto onSubStep = [this]() {
|
||||||
updateContactMap();
|
updateContactMap();
|
||||||
_hasOutgoingChanges = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int numSubsteps = _dynamicsWorld->stepSimulation(timeStep, PHYSICS_ENGINE_MAX_NUM_SUBSTEPS, PHYSICS_ENGINE_FIXED_SUBSTEP, onSubStep);
|
int numSubsteps = _dynamicsWorld->stepSimulation(timeStep, PHYSICS_ENGINE_MAX_NUM_SUBSTEPS, PHYSICS_ENGINE_FIXED_SUBSTEP, onSubStep);
|
||||||
|
@ -265,6 +264,8 @@ void PhysicsEngine::stepSimulation() {
|
||||||
if (_characterController) {
|
if (_characterController) {
|
||||||
_characterController->postSimulation();
|
_characterController->postSimulation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_hasOutgoingChanges = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue