Struct VehicleInputState
- Namespace
- LibreRally.Vehicle
- Assembly
- LibreRally.dll
public readonly struct VehicleInputState
- Inherited Members
-
Constructors
public VehicleInputState(float throttle, float brake, float steer, bool handbrakeRequested)
Parameters
throttle float
brake float
steer float
handbrakeRequested bool
Properties
public float Brake { get; }
Property Value
- float
public bool HandbrakeRequested { get; }
Property Value
- bool
public bool HasInput { get; }
Property Value
- bool
public float Steer { get; }
Property Value
- float
public float Throttle { get; }
Property Value
- float
Methods
public static VehicleInputState Read(InputManager input, bool playerInputEnabled, float gamePadTriggerDeadzone, float gamePadSteerDeadzone)
Parameters
input InputManager
playerInputEnabled bool
gamePadTriggerDeadzone float
gamePadSteerDeadzone float
Returns
- VehicleInputState
public static bool ShouldKeepAwake(VehicleInputState input, Vector3 linearVelocity, Vector3 angularVelocity)
Parameters
input VehicleInputState
linearVelocity Vector3
angularVelocity Vector3
Returns
- bool