VehicleDrive
Since 0.6
{@link Vehicle.drive}: what a behaviour asks of a vehicle; every field 0 when left out.
Signature
export interface VehicleDrive {
/** 0..1. */
throttle?: number
/** 0..1. Held at a standstill with no throttle, it reverses. */
brake?: number
/** -1..1, **+1 right** — the way the `steer` input action reads (D). */
steer?: number
/** 0..1. */
handbrake?: number
}
Import: import type { VehicleDrive } from "@argus/api"
Members
| Member | Signature | Description |
|---|---|---|
throttle | throttle?: number | 0..1. |
brake | brake?: number | 0..1. Held at a standstill with no throttle, it reverses. |
steer | steer?: number | -1..1, +1 right — the way the steer input action reads (D). |
handbrake | handbrake?: number | 0..1. |