five-on-it / packages/sim/src/weapons / aimAngles
Function: aimAngles()
aimAngles(
sim,origin,target,yaw):object
Defined in: packages/sim/src/weapons.ts:418
The yaw and pitch (rad, pitch positive upward) from a muzzle to a target's centre; with no target, the given yaw and level.
Parameters
sim
origin
x
number
y
number
z
number
target
number
yaw
number
Returns
object
pitch
pitch:
number
yaw
yaw:
number