Skip to content

five-on-it / packages/ai/src/police-drones / droneSeesAt

Function: droneSeesAt() ​

droneSeesAt(sim, drone, to): boolean

Defined in: packages/ai/src/police-drones.ts:126

Whether a drone sees a point (a person, a car: police-heat.ts): in the air, within its sight, and nothing of the scenery between.

Parameters ​

sim ​

SimWorld

drone ​

number

to ​

x ​

number

y ​

number

z ​

number

Returns ​

boolean