Vehicle component has "CurrentRPM"
This commit is contained in:
@@ -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); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user