C# Class OpenBveApi.Runtime.PrecedingVehicleState

Represents the current state of the preceding train.
Mostra file Open project: leezer3/OpenBVE Class Usage Examples

Public Methods

Method Description
PrecedingVehicleState ( double location, double distance, Speed speed ) : System

Creates a new instance of this class.

Method Details

PrecedingVehicleState() public method

Creates a new instance of this class.
public PrecedingVehicleState ( double location, double distance, Speed speed ) : System
location double Gets the location of the back of the preceding train, in meters.
distance double The distance from the front of the current train to the back of the preceding train, in meters.
speed Speed Gets the speed of the preceding train.
return System