Adjust realistic braking physics

Realistic acceleration uses 4 x the mass for acceleration as braking
Use 4 x mass for realistic braking as well to match
Increase per train length braking force
Add a power-based per train length braking force
This commit is contained in:
Jonathan G Rennison
2021-04-11 23:39:54 +01:00
parent 49d7afe7ae
commit 5d5100449e
3 changed files with 24 additions and 14 deletions

View File

@@ -71,6 +71,11 @@ enum ConsistChangeFlags {
};
DECLARE_ENUM_AS_BIT_SET(ConsistChangeFlags)
enum RealisticBrakingConstants {
RBC_BRAKE_FORCE_PER_LENGTH = 1600, ///< Additional force-based brake force per unit of train length
RBC_BRAKE_POWER_PER_LENGTH = 15000, ///< Additional power-based brake force per unit of train length (excludes maglevs)
};
byte FreightWagonMult(CargoID cargo);
void CheckTrainsLengths();