Vehicle component has "CurrentRPM"

This commit is contained in:
Stiffly
2014-06-05 05:11:04 +02:00
parent 09971b2d77
commit ccc2c49317
5 changed files with 20 additions and 10 deletions
+2 -1
View File
@@ -12,7 +12,7 @@ struct Vehicle : Component
Vehicle()
: MaxTorque(1000.0f), MinRPM(200.0f), OptimalRPM(3000.0f), MaxRPM(6000.0f), MaxSteeringAngle(35), TopSpeed(90.0f),
MaxSpeedFullSteeringAngle(40.0f), SpringDamping(1.f), UpshiftRPM(5500.0f), DownshiftRPM(1000.0f),
gearsRatio0(3.0f), gearsRatio1(2.25f), gearsRatio2(1.5f), gearsRatio3(1.0f){ }
gearsRatio0(3.0f), gearsRatio1(2.25f), gearsRatio2(1.5f), gearsRatio3(1.0f), currentRPM(0.0f){ }
float MaxTorque;
float MinRPM;
float OptimalRPM;
@@ -29,6 +29,7 @@ struct Vehicle : Component
float gearsRatio1;
float gearsRatio2;
float gearsRatio3;
float currentRPM;
Vehicle* Clone() const override { return new Vehicle(*this); }
};