five-on-it / packages/world/src/geometry / insideSolid
Function: insideSolid()
insideSolid(
level,x,z,h):boolean
Defined in: packages/world/src/geometry.ts:436
Whether the point h metres up over (x, z) is inside a placed solid (a building, a terrace, a pier): one face of that placement covers the point from above and another lies at or under it. A point under a deck or a roof held up by nothing is outside, and so is one standing on a slope or a floor. (Counting the faces crossed would not do: a piece is built of boxes that share and overlap faces.)
Parameters
level
x
number
z
number
h
number
Returns
boolean