Open Rails

AETraveller.MoveInSection Method

[This is preliminary documentation and subject to change.]

Move the traveller along the track by the specified distance, or until the end of the track is reached, within the current track section only.

public float MoveInSection(
   float distanceToGo
);

Parameters

distanceToGo
The distance to travel along the track section. Positive values travel in the direction of the traveller and negative values in the opposite direction.

Return Value

The remaining distance if the traveller reached the end of the track section.

See Also

AETraveller Class | Orts.Formats.OR Namespace