Skip to content

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

Function: projectileSystem() ​

projectileSystem(sim): void

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

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 blow up when their fuse runs out. Runs before the physics step.

Parameters ​

sim ​

SimWorld

Returns ​

void