Skip to content

Commit

Permalink
environment: Fixed IsInSimulation() is being set too early (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 authored Aug 6, 2024
1 parent 80c825c commit 6eef2cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vphysics_jolt/vjolt_environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -784,12 +784,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 );
Expand Down

0 comments on commit 6eef2cb

Please sign in to comment.