Fix vehicles simulation instability when physics substepping is enabled
#2796
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#if COMPILE_WITH_PHYSX
|
||||
|
||||
#include "PhysicsStepperPhysX.h"
|
||||
#include "Engine/Physics/Physics.h"
|
||||
#include "PhysicsBackendPhysX.h"
|
||||
#include "Engine/Profiler/ProfilerCPU.h"
|
||||
#include <ThirdParty/PhysX/foundation/PxMath.h>
|
||||
#include <ThirdParty/PhysX/PxSceneLock.h>
|
||||
@@ -66,7 +66,7 @@ void MultiThreadStepper::substepDone(StepperTask* ownerTask)
|
||||
}
|
||||
|
||||
// -> OnSubstep
|
||||
//Physics::OnSubstep();
|
||||
PhysicsBackendPhysX::SimulationStepDone(mScene, mSubStepSize);
|
||||
|
||||
if (mCurrentSubStep >= mNbSubSteps)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user