Skip to content

five-on-it / packages/sim/src/zones / inZone

Function: inZone() ​

inZone(sim, eid, x, y, z): boolean

Defined in: packages/sim/src/zones.ts:162

Whether a point is in a zone: within its reach on the ground, and from a step under its centre up to its height.

Parameters ​

sim ​

SimWorld

eid ​

number

x ​

number

y ​

number

z ​

number

Returns ​

boolean