|
37 | 37 | using Orts.Common; |
38 | 38 | using Orts.Formats.Msts; |
39 | 39 | using Orts.Parsers.Msts; |
40 | | -using Orts.Simulation.AIs; |
41 | 40 | using Orts.Simulation.Physics; |
42 | 41 | using Orts.Simulation.RollingStocks.Coupling; |
43 | 42 | using Orts.Simulation.RollingStocks.SubSystems; |
44 | 43 | using Orts.Simulation.RollingStocks.SubSystems.Brakes; |
45 | 44 | using Orts.Simulation.RollingStocks.SubSystems.PowerSupplies; |
46 | 45 | using Orts.Simulation.Signalling; |
47 | | -using Orts.Simulation.Timetables; |
48 | 46 | using ORTS.Common; |
49 | 47 | using ORTS.Scripting.Api; |
50 | 48 | using System; |
@@ -2089,14 +2087,13 @@ public virtual void UpdateCurveForce(float elapsedClockSeconds) |
2089 | 2087 | // Base Curve Resistance (from refernce i)) = (Vehicle mass x Coeff Friction) * (Track Gauge + Vehicle Fixed Wheelbase) / (2 * curve radius) |
2090 | 2088 | // Vehicle Fixed Wheel base is the distance between the wheels, ie bogie or fixed wheels |
2091 | 2089 |
|
2092 | | - var rBaseWagonN = 9.81f * MassKG * Train.WagonCoefficientFriction * (TrackGaugeM + RigidWheelBaseM) / (2.0f * CurrentCurveRadiusM); |
| 2090 | + float rBaseWagonN = GravitationalAccelerationMpS2 * MassKG * Train.WagonCoefficientFriction * (TrackGaugeM + RigidWheelBaseM) / (2.0f * CurrentCurveRadiusM); |
2093 | 2091 |
|
2094 | 2092 | // Speed Curve Resistance (from reference ii) - second term only) = ((Speed^2 / Curve Radius) - (Superelevation / Track Gauge) * Gravitational acceleration) * Constant |
2095 | 2093 |
|
2096 | | - var speedConstant = 1.5f; |
2097 | | - var MToMM = 1000; |
2098 | | - var rspeedKgpTonne = speedConstant * Math.Abs((SpeedMpS * SpeedMpS / CurrentCurveRadiusM) - ((MToMM * SuperElevationM / MToMM * TrackGaugeM) * GravitationalAccelerationMpS2)); |
2099 | | - var rSpeedWagonN = GravitationalAccelerationMpS2 * (Kg.ToTonne(MassKG) * rspeedKgpTonne); |
| 2094 | + float speedConstant = 1.5f; |
| 2095 | + float rspeedKgpTonne = speedConstant * Math.Abs((SpeedMpS * SpeedMpS / CurrentCurveRadiusM) - (GravitationalAccelerationMpS2 * SuperElevationM / TrackGaugeM)); |
| 2096 | + float rSpeedWagonN = GravitationalAccelerationMpS2 * (Kg.ToTonne(MassKG) * rspeedKgpTonne); |
2100 | 2097 |
|
2101 | 2098 | CurveForceN = rBaseWagonN + rSpeedWagonN; |
2102 | 2099 | } |
|
0 commit comments