Open Rails

Train.GetObjectDistanceToTrain Method

[This is preliminary documentation and subject to change.]

Get distance from train to object position using route list

public float GetObjectDistanceToTrain(
   ObjectItemInfo thisObject
);

See Also

Train Class | ORTS Namespace