sm.terrainTile.getHeightAt

Returns the terrain height at position (x,y) in a tile cell.

Kind: Function

Environments: Terrain

Terrain

sm.terrainTile.getHeightAt( tileUid, cellOffsetX, cellOffsetY, lod, x, y )

Open the full Terrain reference

Parameters:

Name Type Description
tileUid Uuid The tile uuid.
cellOffsetX integer The cell X offset.
cellOffsetY integer The cell Y offset.
lod integer The level of detail. [0-5]
x integer The local X value.
y integer The local Y value.

Returns:

Type Description
number The height.