Skip to content

five-on-it / packages/sim/src/fire / fireSystem

Function: fireSystem() ​

fireSystem(sim): void

Defined in: packages/sim/src/fire.ts:216

One tick of the fires, after the physics step and the water: the cars this step's hits set alight, any other car brought low, then every fire burns down its fuse (hurting its car and the people in it once a second), a car whose fuse is out blowing up, and a blown-up wreck's blaze dying down; water puts out both. Nothing unless the world's rules say so.

Parameters ​

sim ​

SimWorld

Returns ​

void