Pedals
Since 0.7
Throttle and brake, 0..1, as ctx.vehicle.drive takes them.
Signature
export interface Pedals {
/** Throttle, 0..1. */
throttle: number
/** Brake, 0..1 (below 2 m/s it would be reverse, so {@link pedals} leaves it 0 there). */
brake: number
}
Import: import type { Pedals } from "@argus/gameplay"
Members
| Member | Signature | Description |
|---|---|---|
throttle | throttle: number | Throttle, 0..1. |
brake | brake: number | Brake, 0..1 (below 2 m/s it would be reverse, so {@link pedals} leaves it 0 there). |