Suspension
Each wheel has a raycast spring and damper. Their forces produce body roll and weight transfer.
vehicle physics kit · three.js and Rapier
Includes the TypeScript source and tuning lab.
Each wheel has a raycast spring and damper. Their forces produce body roll and weight transfer.
Grip falls past the tyre's slip limit. Tune the falloff and rear grip in the lab.
The RV rolls in a J-turn from 60 km/h. Hold F to push it upright.
An AudioWorklet synthesises inline-4, V8, big V8 and inline-3 voices.
Torque curve, automatic gearbox, launch clutch, rev limiter and a limited-slip diff.
Fit a glTF car with named wheel nodes to a handling preset.
Braking starts at 100 km/h, or about 96 km/h for the RV after 30 seconds of acceleration.
| Preset | 0 to 100 km/h | Braking distance | Grip at 60 km/h | Rolls over |
|---|---|---|---|---|
| Sedan | 8.4 s | 46.6 m | 0.73 g | no |
| Muscle | 7.7 s | 48.2 m | 0.69 g | no |
| Compact | 10.1 s | 47.4 m | 0.80 g | no |
| RV | 6.0 s to 50 | 41.8 m | on two wheels | from 60 km/h |
const car = new RapierVehicle(RAPIER, world, cloneParams(vehiclePresets.sedan), spawn, 0);
world.timestep = 1 / 120;
// every 1/120 s
car.input.throttle = gas;
car.input.steer = stick;
car.preStep(1 / 120);
world.step();Built for three.js r186 and Rapier 0.20.
AGENTS.md covers integration and bench checks before and after handling changes. CLAUDE.md points to it.




Use it in any number of commercial games. Don't resell or share the source.
$79
one developer
$249
up to five developers
If the kit does not work for your project, reply to your Polar receipt email within 7 days of purchase for a full refund.
The lab uses WebGPU. The handling model has no renderer; you supply rendering and a fixed physics loop.
Ports need physics adapters and a translation of the TypeScript model. A Unity C# edition with the same handling is coming to the Unity Asset Store.
Networking is not included. Run the simulation on the host or vehicle owner and replicate its state.
Use it in any number of commercial games. Don't resell or share the source.
Free for all 1.x versions, from your Polar customer portal.
If the kit does not work for your project, reply to your Polar receipt email within 7 days of purchase for a full refund.