# VehicleDrift

> Talos 0.7 · Since 0.6

Arcade drift: with this block, holding the `handbrake` input while steering above `minSpeed` drops the rear lateral grip and a yaw assist holds a controllable slide angle that steering modulates; releasing pays a boost proportional to the drift's duration.

The handbrake input is then the drift button and applies no brake torque. Absent: no drift, and the vehicle behaves exactly as without the feature.

## Fields

| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
| `enabled` | `boolean` | no | `true` |  | false switches the drift off while keeping the block (a preset's drift can be disabled by a scene). Defaults to true. |
| `minSpeed` | `number` | no | `8` |  | Forward speed in METRES PER SECOND needed to start a drift, greater than zero; the drift ends below 60% of it. Defaults to 8. |
| `minSteer` | `number` | no | `0` |  | How far the steering must be turned to start a drift, 0..1. Its sign sets the drift direction. Defaults to 0.25. |
| `rearGrip` | `number` | no | `0` |  | Rear lateral grip multiplier at full drift, 0..1. 1 keeps full grip (no slide); lower lets the tail swing out. Defaults to 0.5. |
| `gripRampTime` | `number` | no | `0` |  | Seconds the rear grip takes to fall to `rearGrip` after the drift starts, and to recover after it ends. Smoothstep. 0 is instant. Defaults to 0.25. |
| `slideAngle` | `number` | no | `0` |  | The slide angle in RADIANS the yaw assist holds at neutral steering: the angle between where the vehicle points and where it travels. Greater than zero. Defaults to 0.5. |
| `steerAngleRange` | `number` | no | `0` |  | How much steering changes the held angle, 0..1: steering into the turn raises it by up to this fraction, counter-steering lowers it by the same. Defaults to 0.5. |
| `yawAssist` | `number` | no | `14` |  | Stiffness of the yaw torque that pulls the slide angle to its target, in 1/s² (torque per unit of yaw inertia per radian of error), 0 or more. 0 is no assist. Defaults to 14. |
| `yawDamping` | `number` | no | `5` |  | Damping of that torque against the angle's rate of change, in 1/s, 0 or more. Defaults to 5. |
| `chargeMinAngle` | `number` | no | `0` |  | The slide angle in RADIANS below which a drift charges no boost, 0 or more. Defaults to 0.15. |
| `boostTiers` | `VehicleDriftBoostTier[]` | no |  |  | Mini-boost tiers earned by the drift's charge time. Absent or empty: a drift gives no boost. Ascending `time`. |
| `boostThrust` | `number` | no | `2` |  | Multiplier on the drive force while a boost lasts, 1 or more. Defaults to 2. |

## See also

- `VehicleDriftBoostTier`
