Physics · interface

WheelOptions

Explained in Your first game, Rigid bodies.

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

Properties

NameTypeDescription
xnumberWhere the suspension is anchored, in the chassis's local frame.
ynumber
znumber
radiusoptionalnumber
suspensionTraveloptionalnumberHow far the wheel may travel below its anchor.
stiffnessoptionalnumberSpring rate, in newtons per metre of compression.
dampingoptionalnumberDamping, in newtons per metre per second.
steersoptionalbooleanWhether steering input turns this wheel.
drivenoptionalbooleanWhether engine and brake force reach it.