VehicleHandling
Since 0.7
Arcade handling guard: no spins from steering, no pivoting at low speed, a reverse speed limit.
Every number scales with the body's own mass and inertia. Absent: none of it, and the vehicle behaves exactly as without the feature; present, a field left out takes its default.
Fields
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
maxSlip | number | no | 0 | The slip angle in RADIANS above which the guard steps in, greater than zero. Defaults to 0.42. Slip is between where the vehicle points and where it travels. | |
antiSpin | number | no | 1 | Strength of the guard past maxSlip, 0..1; 0 is off. Defaults to 1. It pulls the yaw back toward the travel direction, bleeds sideways speed and straightens itself when the steering is released. | |
maxYawRate | number | no | 2 | Yaw rate cap in RADIANS PER SECOND, greater than zero, easing to 0.83 of it at top speed. Defaults to 2.3. | |
turnRadius | number | no | 5 | Low-speed turn limit in METRES, greater than zero: no pivoting on the spot. Defaults to 5.2. The yaw rate stays under 0.35 + speed / turnRadius. | |
maxReverseSpeed | number | no | 4 | Backward speed cap in METRES PER SECOND, greater than zero. Defaults to 4.5. | |
landingGrace | number | no | 0 | Seconds after a landing with the guard half as strong again, 0 or more. Defaults to 0.7. It fades out over them. | |
driftSlip | number | no | 0 | maxSlip while the drift block is drifting, in RADIANS, greater than zero. Defaults to 0.62. | |
maxRiseSpeed | number | no | 2 | Upward speed cap in METRES PER SECOND while on its wheels, 0 or more; 0 is off. Defaults to 2.5. No launches off a drift or a kerb. | |
antiRoll | number | no | 1 | Keeps the body within 8 degrees of upright on the ground, 0..1; 0 is off. Defaults to 1. A torque from its own inertia. |