Skip to content

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

Function: flatArc() ​

flatArc(speed, distance, drop?): number

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

The elevation (rad) of a launcher's grenade fired at speed to land distance m away and drop m below the muzzle, on a flat arc: the lower of the two that reach it; 45° (the farthest it goes) beyond the gun's reach.

Parameters ​

speed ​

number

distance ​

number

drop? ​

number = 0

Returns ​

number