Skip to content

five-on-it / packages/sim/src/weapons / projectileSystem

Function: projectileSystem() ​

projectileSystem(sim): void

Defined in: packages/sim/src/weapons.ts:1216

The projectile system: rockets fly straight and blow up on the first thing they hit (never their shooter) or at the end of their fuse; grenades ride Rapier and go off (ordnance.ts: a blast, a cloud, a flash, a pulse) when their fuse runs out; what flies its own arc (a bottle, a launcher's grenade, a charge) falls as it goes and goes off where it hits, or sticks there (a charge, riding the car it hit) until its fuse runs out. Runs before the physics step.

Parameters ​

sim ​

SimWorld

Returns ​

void