Fixed IsInSimulation() is being set too early
Related issue: fixes #102
This commit is contained in:
parent
50cef39716
commit
9fe86c18ee
|
@ -765,12 +765,12 @@ void JoltPhysicsEnvironment::Simulate( float deltaTime )
|
||||||
|
|
||||||
HandleDebugDumpingEnvironment( VJOLT_RETURN_ADDRESS() );
|
HandleDebugDumpingEnvironment( VJOLT_RETURN_ADDRESS() );
|
||||||
|
|
||||||
m_bSimulating = true;
|
|
||||||
|
|
||||||
// Funnily enough, VPhysics calls this BEFORE
|
// Funnily enough, VPhysics calls this BEFORE
|
||||||
// doing the simulation...
|
// doing the simulation...
|
||||||
m_ContactListener.PostSimulationFrame();
|
m_ContactListener.PostSimulationFrame();
|
||||||
|
|
||||||
|
m_bSimulating = true;
|
||||||
|
|
||||||
// Run pre-simulation controllers
|
// Run pre-simulation controllers
|
||||||
for ( IJoltPhysicsController *pController : m_pPhysicsControllers )
|
for ( IJoltPhysicsController *pController : m_pPhysicsControllers )
|
||||||
pController->OnPreSimulate( deltaTime );
|
pController->OnPreSimulate( deltaTime );
|
||||||
|
|
Loading…
Reference in New Issue