This commit is contained in:
Raphael 2024-02-04 01:37:37 -05:00 committed by GitHub
commit 08584d9109
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 );