SparseHeightMapBoundingScript

SparseHeightMapBoundingScript

Bounds the host entity to a height map computed from a set of terrain points

Constructor

new SparseHeightMapBoundingScript(elevationData)

Parameters:
Name Type Description
elevationData Array.<Number>

The array of height points given as a flat array

Methods

getClosest(x, z) → {number}

Returns the height of the closest terrain point to the given coordinates

Parameters:
Name Type Description
x
z