Skip to content

five-on-it / apps/client/src/renderer/wheel-effects

apps/client/src/renderer/wheel-effects ​

What the tyres leave behind, every frame, for every car on screen (the player's and everyone else's): each wheel's slip (slip.ts) lays tyre marks along its path while it slides hard enough, and puffs smoke or dust (@foi/world's ground-probe.ts says which, and how high the ground is) at a rate that grows with the slide; a car that comes down after a fall of a few metres a second throws up a ring of dust. The per-wheel trails and the landings are remembered by car, and forgotten a second after a car was last seen.

Interfaces ​

Functions ​