five-on-it / packages/world/src/geometry / groundAt
Function: groundAt()
groundAt(
level,x,z):object
Defined in: packages/world/src/geometry.ts:278
The height of the ground at a point (m): the plane, or the highest up-facing triangle of a terrain piece over (x, z) (a terrace's top, a ramp's slope, a hillside), with the slope of that triangle (rise per metre; 0 on the flat). Decks and floors (structures) are not ground: a bridge has a street under it.
Parameters
level
x
number
z
number
Returns
object
height
height:
number
slope
slope:
number