Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

findGroundUnder

findGroundUnder(world, point): Entity | undefined

The ground under point across every Landscape in world, as useLandscapeEntity or spawnGround returns it, for the { ground } a ground read such as findGroundHeight takes. It is the first ground a ray cast straight down from half a metre above the point meets, of those whose map reaches it, else the lowest; off every map, the same at the largest map’s edge. A heightfield is no solid below its surface, so a point between two grounds reads the lower one. With one Landscape it is that ground at every point, and with none undefined. useGroundHeight reads by the same rule in a view.

Parameter Type
world World
point Vector3Like

Entity | undefined