Warming up the tyres…
🏎️ Car physics 3D
A rear-drive coupe on a dynamic single-track (bicycle) model with slip-angle tyres in real units. Use the handbrake to break the rear tyres loose and drift.
W / ↑ throttle · S / ↓ brake, reverse
A D / ← → steer · Space handbrake
Drag to orbit, wheel / pinch to zoom
The science

Model. Dynamic single-track (“bicycle”) model: mass m = 1300 kg, yaw inertia Iz = 1800 kg m², wheelbase 2.70 m, centre of mass 1.25 m behind the front axle. Body-frame equations: m(u̇ - v r) = ΣFx, m(v̇ + u r) = ΣFy, Iz ṙ = a Fyf - b Fyr, integrated at 240 Hz (semi-implicit Euler), independent of the display frame rate.

Tyres. Slip angle α = atan(vlat/√(vlong²+0.8²)) (the 0.8 m/s softens the singularity at a standstill). Lateral force Fy = -μFz sin(1.4 atan(Bα)) with the initial slope fixed at about 8.5–9.5 Fz per radian, so a low grip μ saturates earlier. Drive and brake forces share the grip with the lateral force through the friction ellipse (Fx/μFz)²+(Fy/μFz)² ≤ 1.

Power and resistance. Rear-wheel drive force min(P/u, 0.8μFzr) (the 0.8 is a traction-control style cap that leaves the rear tyres some sideways grip), aerodynamic drag ½ρCdA u² (CdA = 0.65 m²), rolling resistance 0.012 m g. Braking is split to match the static axle loads (53.7 % front).

Handbrake. Locks the rear wheels: they then slide with kinetic friction μhb Fzr opposing the sliding velocity, losing lateral grip and the rear steps out.

Steady cornering. In the linear range the yaw rate is r = (u/L) δ /(1 + K u²) with understeer gradient K = (m/L²)(b/Cf - a/Cr).

Honest simplifications. Axle loads are fixed (no weight transfer, no suspension, no tyre relaxation length or temperature), μ is constant, there is no differential or gearbox (power-limited traction), steering authority is reduced with speed (δmax/(1+(u/12)²), a driving-assist, like a real steering ratio plus a driver), and the cones are inelastic pucks. The 2D twin of this page still uses the older kinematic model. Assets (coupe, wheels, cones, tyres, asphalt, paint) were modelled and baked in Blender; the tyre smoke sprite is a Blender-baked noise cloud.

Independent checks (run on load):

running…
0 km/h
Lateral accel0.00 g
Body slip angle0°
Yaw rate0°/s
Steering0°
Cones knocked0
StateGripping
drag = orbit · wheel = zoom · camera follows behind the car
Made with 🟠 Blender · Three.js