diff options
author | aap <aap@papnet.eu> | 2021-01-16 19:38:05 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-18 10:59:19 +0100 |
commit | a672860c401aa1ca179fce42e439c59f8d07f6d8 (patch) | |
tree | 50e4189f7b85a1d66c25c459eec40cdd551a5dce /src/vehicles/Transmission.h | |
parent | remove scriptspath from premake (diff) | |
download | re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.gz re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.bz2 re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.lz re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.xz re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.zst re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.zip |
Diffstat (limited to 'src/vehicles/Transmission.h')
-rw-r--r-- | src/vehicles/Transmission.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicles/Transmission.h b/src/vehicles/Transmission.h index a3d15513..8aea7b02 100644 --- a/src/vehicles/Transmission.h +++ b/src/vehicles/Transmission.h @@ -17,6 +17,7 @@ public: int8 nNumberOfGears; uint8 Flags; float fEngineAcceleration; + float fEngineInertia; float fMaxVelocity; float fMaxCruiseVelocity; float fMaxReverseVelocity; @@ -24,5 +25,6 @@ public: void InitGearRatios(void); void CalculateGearForSimpleCar(float speed, uint8 &gear); + float CalculateDriveAcceleration(const float &gasPedal, uint8 &gear, float &time, const float &velocity, float *inertiaVar1, float *inertiaVar2, uint8 nDriveWheels, uint8 cheat); float CalculateDriveAcceleration(const float &gasPedal, uint8 &gear, float &time, const float &velocity, bool cheat); }; |