five-on-it / packages/sim/src/sonic / inSonicCone
Function: inSonicCone()
inSonicCone(
sim,car,yaw,x,z):boolean
Defined in: packages/sim/src/sonic.ts:81
Whether a point lies in a vehicle's sonic cone pointed along yaw: within its range of the cannon (on the ground plane) and within its half-angle of the heading.
Parameters
sim
car
number
yaw
number
x
number
z
number
Returns
boolean