findGroundHeight
findGroundHeight(
world,position,options?):number|undefined
Metres above the origin of the ground’s surface under position, as
its heightfield holds it once a terrain edit lands: what a copy placed
on a hillside stands on, in a system or a view. It reads the
Landscape’s ground at x and z, under a bridge or the sea too, and not
what a foot stands on. Undefined where no Landscape stands, off the
map, or at a point that is no number; throws where two stand and
options names no ground.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
world |
World |
undefined |
position |
GroundPosition |
undefined |
options |
GroundHeightOptions |
noOptions |
Returns
Section titled “Returns”number | undefined