Physics · interface
VehicleOptions
Explained in Your first game, Rigid bodies.
interface VehicleOptionsimport type { VehicleOptions } from '@driftengine/physics';Properties
| Name | Type | Description |
|---|---|---|
wheels | readonly WheelOptions[] | |
maxSteerTangentoptional | number | Maximum steering angle, as the tangent of the angle rather than the angle. |
engineForceoptional | number | Newtons at full throttle, shared across driven wheels. |
brakeForceoptional | number | Newtons at full brake. |
longitudinaloptional | TyreCurve | |
lateraloptional | TyreCurve | |
filteroptional | QueryFilter | |
groundoptional | GroundProbe | A surface the wheels can rest on that is not a body.MoreThe same seam Consulted only where the wheel's ray found no body, on the same ruling the controller carries: a body is a thing that is there and a surface is a description of where the ground is. |