Add clutch strength option

This commit is contained in:
Wojtek Figat
2021-03-29 16:48:59 +02:00
parent 6ad8e8b133
commit dd00c83f74
2 changed files with 28 additions and 23 deletions

View File

@@ -433,8 +433,7 @@ void WheeledVehicle::Setup()
// Clutch
PxVehicleClutchData clutch;
// TODO: expose Clutch options
clutch.mStrength = M2ToCm2(10.0f);
clutch.mStrength = M2ToCm2(_gearbox.ClutchStrength);
driveSimData.setClutchData(clutch);
// Ackermann steer accuracy
@@ -484,8 +483,7 @@ void WheeledVehicle::Setup()
// Clutch
PxVehicleClutchData clutch;
// TODO: expose Clutch options
clutch.mStrength = M2ToCm2(10.0f);
clutch.mStrength = M2ToCm2(_gearbox.ClutchStrength);
driveSimData.setClutchData(clutch);
// Create vehicle drive