Talos docs

Pedals

Since 0.7

Throttle and brake, 0..1, as ctx.vehicle.drive takes them.

Plain text

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

MemberSignatureDescription
throttlethrottle: numberThrottle, 0..1.
brakebrake: numberBrake, 0..1 (below 2 m/s it would be reverse, so {@link pedals} leaves it 0 there).