Skip to content

five-on-it / packages/sim/src/sinking

packages/sim/src/sinking ​

Cars in water and lava (water.ts): every tick after the physics step, a car in a surface is slowed by it (it sinks to the bottom rather than falling through), and one whose middle has sunk under the surface floods: wrecked, everyone in it put out, into the water. Lava wrecks a car the moment it touches it.

Functions ​