Crash detection
Impact Dynamics watches the car you drive (driver seat only) and measures every hit by how hard the car was stopped or knocked: the sudden change in its speed between two checks a fraction of a second apart. It is not how fast the car was going.
- A car at 50 km/h stopped dead by a wall = a hit of about 50 km/h. A big crash.
- A glancing scrape at 100 km/h that slows the car to 92 = a hit of about 8 km/h. A small one.
Physicists call this change in speed delta-v. Some config settings are named after it, such as MinDeltaKmh.
The hit strength is multiplied by the vehicle's class multiplier (and a per-model override if you set one), then it picks the tier:
| Tier | Hit strength from (km/h, default) | Typical result |
|---|---|---|
| light | 8 | From 10 km/h a few pieces of plastic; a small shake. |
| moderate | 18 | Glass and panel pieces, the car keeps dropping pieces as it slides, a chance of a burst tyre, a door jam possible from 22 km/h. |
| heavy | 35 | Big parts on the road, bent wheels, jammed doors, fuel tank damage, daze and blackout. |
| severe | 60 | Wheels torn off (always from 70 km/h), the frame can fold (every door jams), a holed fuel tank, a longer blackout. |
Most settings in the config are given per tier.
What is not a crash
- Curbs, speed bumps, dips and landings - a jolt that mostly throws the car up without denting the body is ignored (
BumpUpShare/BumpBodyLoss). - Taps and hard braking under
MinDeltaKmh. - Ignored classes - bicycles, boats, helicopters, planes and trains by default.
Where it hit
The contact point comes from the body's own dents (12 points around the car) once it dented enough, otherwise from the direction of the push. A side hit that also pushed the car forward / back is read as a corner hit (front-left, rear-right ...), so debris, wheels and doors come from that corner.
How often it samples
- Every 50 ms while moving, every 250 ms while (nearly) stopped - a car you sit in at the lights still notices being hit. Empty parked cars are not watched.
- The 2-3 samples of one crash are merged into one impact (
CooldownMs).
Server checks
The client only reports. The server:
- accepts a report only from the driver of that vehicle,
- works the tier out again from the hit strength (never trusts the client's tier),
- checks the contact point is at the car,
- rate-limits crashes per player and per vehicle, and caps how many leave debris per minute.
Every accepted crash fires the server event ryan-impactdynamics:crash - see Dispatch, logs & hooks.
Configure it in Impact detection.