C# Class OpenBveApi.Runtime.PrecedingVehicleState

Represents the current state of the preceding train.
Afficher le fichier Open project: leezer3/OpenBVE Class Usage Examples

Méthodes publiques

Méthode Description
PrecedingVehicleState ( double location, double distance, Speed speed ) : System

Creates a new instance of this class.

Method Details

PrecedingVehicleState() public méthode

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.
Résultat System