new cars and maps

This commit is contained in:
2025-11-21 17:52:25 +07:00
parent 558a1eda07
commit 6cb8f716b3
8 changed files with 45 additions and 9 deletions

View File

@@ -117,10 +117,10 @@ public partial class Clutch : PowertrainComponent
ClutchInput = 1f;
}
if ( Controller.SwappedBrakes > 0 )
{
ClutchInput = 0;
}
//if ( Controller.SwappedBrakes > 0 )
//{
// ClutchInput = 0;
//}
}
if ( Controller.IsClutching > 0 )
{

View File

@@ -334,7 +334,7 @@ public class Engine : PowertrainComponent, IScenePhysicsEvents
// Calculate generated torque and power
float generatedTorque = CalculateTorqueICE( OutputAngularVelocity, dt );
generatedPower = TorqueToPowerInKW( in OutputAngularVelocity, in generatedTorque );
// Calculate reaction torque
float reactionTorque = (targetAngularVelocity - OutputAngularVelocity) * Inertia / dt;