Physics · interface
WheelOptions
Explained in Your first game, Rigid bodies.
interface WheelOptionsimport type { WheelOptions } from '@driftengine/physics';Properties
| Name | Type | Description |
|---|---|---|
x | number | Where the suspension is anchored, in the chassis's local frame. |
y | number | |
z | number | |
radiusoptional | number | |
suspensionTraveloptional | number | How far the wheel may travel below its anchor. |
stiffnessoptional | number | Spring rate, in newtons per metre of compression. |
dampingoptional | number | Damping, in newtons per metre per second. |
steersoptional | boolean | Whether steering input turns this wheel. |
drivenoptional | boolean | Whether engine and brake force reach it. |