five-on-it / packages/sim/src/zones / sightBlocked
Function: sightBlocked()
sightBlocked(
sim,from,to):boolean
Defined in: packages/sim/src/zones.ts:199
Whether smoke blocks the line between two points: the segment passes through a smoke zone's reach (its closest point to the cloud's axis within the reach, between the ground under it and its height). A point inside a cloud sees out of it no better than it is seen. @foi/ai's eyes and the cameras ask this before their ray.
Parameters
sim
from
x
number
y
number
z
number
to
x
number
y
number
z
number
Returns
boolean