Physics · interface

VehicleInput

Explained in Your first game, Rigid bodies.

interface VehicleInput
import type { VehicleInput } from '@driftengine/physics';

Properties

NameTypeDescription
throttlenumber−1 to 1.
brakenumber0 to 1.
steernumber−1 to 1, scaled by maxSteerTangent.