super powerful engine
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Car_simulation
|
||||
|
||||
public float Speed => WheelSystem.CarSpeed;
|
||||
|
||||
public float Mass { get; set; } = 1500f; // kg
|
||||
public float Mass { get; set; } = 2000f; // kg
|
||||
public int WheelCount = 4;
|
||||
public int DrivenWheels = 2;
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Car_simulation
|
||||
}
|
||||
}
|
||||
|
||||
public void Update(float deltaTime)
|
||||
public void Update(float deltaTime, float totalTime)
|
||||
{
|
||||
Engine.Throttle = ThrottleInput;
|
||||
Drivetrain.ClutchEngagement = 1f - ClutchInput;
|
||||
@@ -99,7 +99,7 @@ namespace Car_simulation
|
||||
Drivetrain.ClutchEngagement = 0f;
|
||||
|
||||
// Update engine
|
||||
Engine.Update(deltaTime);
|
||||
Engine.Update(deltaTime, totalTime);
|
||||
|
||||
// Update drivetrain (transfers energy between engine and wheels+car)
|
||||
Drivetrain.Update(deltaTime);
|
||||
|
||||
Reference in New Issue
Block a user