Open Rails

Traveller.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)

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 Traveller)

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

Traveller Class | ORTS Namespace