Table of Contents

Struct VehicleInputState

Namespace
LibreRally.Vehicle
Assembly
LibreRally.dll
public readonly struct VehicleInputState
Inherited Members

Constructors

VehicleInputState(float, float, float, bool)

public VehicleInputState(float throttle, float brake, float steer, bool handbrakeRequested)

Parameters

throttle float
brake float
steer float
handbrakeRequested bool

Properties

Brake

public float Brake { get; }

Property Value

float

HandbrakeRequested

public bool HandbrakeRequested { get; }

Property Value

bool

HasInput

public bool HasInput { get; }

Property Value

bool

Steer

public float Steer { get; }

Property Value

float

Throttle

public float Throttle { get; }

Property Value

float

Methods

Read(InputManager, bool, float, float)

public static VehicleInputState Read(InputManager input, bool playerInputEnabled, float gamePadTriggerDeadzone, float gamePadSteerDeadzone)

Parameters

input InputManager
playerInputEnabled bool
gamePadTriggerDeadzone float
gamePadSteerDeadzone float

Returns

VehicleInputState

ShouldKeepAwake(VehicleInputState, Vector3, Vector3)

public static bool ShouldKeepAwake(VehicleInputState input, Vector3 linearVelocity, Vector3 angularVelocity)

Parameters

input VehicleInputState
linearVelocity Vector3
angularVelocity Vector3

Returns

bool