Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

VehicleInput

Replayable driver intent consumed every fixed tick.

public struct VehicleInput : IComponent<VehicleInput>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Throttle

public float Throttle;

Signed accelerator, with negative input selecting reverse.

Range: [-1, 1]. Default: 0. Replicated to the owning client.

Steer

public float Steer;

Signed steering, positive turns right.

Range: [-1, 1]. Default: 0. Replicated to the owning client.

Brake

public float Brake;

Service brake.

Range: [0, 1]. Default: 0. Replicated to the owning client.

HandBrake

public float HandBrake;

Rear-wheel handbrake.

Range: [0, 1]. Default: 0. Replicated to the owning client.

Methods

Access

public static ref VehicleInput Access(Entity entity, bool write);

No description yet.

Insert

public static void Insert(in Commands commands, Entity entity, in VehicleInput value);

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.