Open Rails

AETraveller.DistanceTo Method

[This is preliminary documentation and subject to change.]

Returns the distance from the traveller's current lcation, in its current direction, to the location specified

Overload List

Returns the distance from the traveller's current lcation, in its current direction, to the location specified

public float DistanceTo(WorldLocation)

Returns the distance from the traveller's current location, in its current direction, to the location specified.

public float DistanceTo(TrackNode,int,int,float,float,float)

Returns the distance from the traveller's current location, in its current direction, to the location specified.

public float DistanceTo(TrackNode,int,int,float,float,float,float)

public float DistanceTo(TrItem)

public float DistanceTo(TrItem,float)

public float DistanceTo(GlobalItem,float)

Returns the distance from the traveller's current location, in its current direction, to the location specified.

public float DistanceTo(int,int,float,float,float)

Returns the distance from the traveller's current location, in its current direction, to the location specified.

public float DistanceTo(int,int,float,float,float,out AETraveller)

Returns the distance from the traveller's current location, in its current direction, to the location specified.

public float DistanceTo(int,int,float,float,float,float)

See Also

AETraveller Class | Orts.Formats.OR Namespace