Open Rails

Axle.Friction Method

[This is preliminary documentation and subject to change.]

Optional Friction computation function - Computes Davis formula for given parameters: Fo = Weight / 9810 * (A + B * V + C * V^2)

public static float Friction(
   float A,
   float B,
   float C,
   float speedMpS,
   float weight
);

Parameters

A
Static friction parameter [N/kN]
B
Rolling friction parameter [N/kN]
C
Air friction parameter [N/kN]
speedMpS
Speed in MpS
weight
Weight in kg

Return Value

Friction force in Newtons, Returns zero for zero speed, Returns negative for negative speed

See Also

Axle Class | ORTS Namespace