Increase physics solver iterations counts for vehicles to have more stability and quality

This commit is contained in:
Wojtek Figat
2021-03-26 16:14:06 +01:00
parent 3f68a0576d
commit 2ce14b5e9c

View File

@@ -374,6 +374,7 @@ void WheeledVehicle::Setup()
// Create vehicle drive
drive = PxVehicleDrive4W::allocate(wheels.Count());
_actor->setSolverIterationCounts(12, 4);
drive->setup(CPhysX, _actor, *wheelsSimData, driveSimData, wheels.Count() - 4);
WheelVehicles.Add(this);