Open Rails

Train.GetDistanceToTrain Method

[This is preliminary documentation and subject to change.]

Get distance from train to location using route list TODO : rewrite to use active links, and if fails use traveller location must have same direction as train

public float GetDistanceToTrain(
   int sectionIndex,
   float endOffset
);

See Also

Train Class | ORTS Namespace