Talos docs

VehicleDrive

Since 0.6

{@link Vehicle.drive}: what a behaviour asks of a vehicle; every field 0 when left out.

Plain text

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

MemberSignatureDescription
throttlethrottle?: number0..1.
brakebrake?: number0..1. Held at a standstill with no throttle, it reverses.
steersteer?: number-1..1, +1 right — the way the steer input action reads (D).
handbrakehandbrake?: number0..1.