C# Class OpenBve.Scripting.Simulation

Provides scripting access to in simulation variables
Show file Open project: leezer3/OpenBVE

Public Methods

Method Description
CameraDistance ( Vector3 Position ) : double

Gets the camera distance in meters from the current object

time ( ) : double

Gets the current in-simulation time

Method Details

CameraDistance() public static method

Gets the camera distance in meters from the current object
public static CameraDistance ( Vector3 Position ) : double
Position Vector3 The absolute in-game position of the current object to test against
return double

time() public static method

Gets the current in-simulation time
public static time ( ) : double
return double