Fixed IsInSimulation() is being set too early

Related issue:
fixes #102
This commit is contained in:
RaphaelIT7 2023-10-02 00:32:19 +02:00
parent 50cef39716
commit 9fe86c18ee
1 changed files with 2 additions and 2 deletions

View File

@ -765,12 +765,12 @@ void JoltPhysicsEnvironment::Simulate( float deltaTime )
HandleDebugDumpingEnvironment( VJOLT_RETURN_ADDRESS() );
m_bSimulating = true;
// Funnily enough, VPhysics calls this BEFORE
// doing the simulation...
m_ContactListener.PostSimulationFrame();
m_bSimulating = true;
// Run pre-simulation controllers
for ( IJoltPhysicsController *pController : m_pPhysicsControllers )
pController->OnPreSimulate( deltaTime );