Skip to content

flyProjectiles

flyProjectiles(world, deltaSeconds): void

Defined in: packages/engine/src/gameplay/weapons/projectile.ts:61

Flies each projectile along its velocity for a step: the first target in the metres it crosses takes its damage and it is gone, as it is once it has flown its range. It meets each target where it stands now, so it needs no rewind. A streamed one is the room’s to fly.

Parameter Type
world World
deltaSeconds number

void