sm.terrainTile.getClutterIdxAt

Returns the clutter index at position (x,y) in a tile cell.

Kind: Function

Environments: Terrain

Terrain

sm.terrainTile.getClutterIdxAt( tileUid, cellOffsetX, cellOffsetY, 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.
x integer The local X value.
y integer The local Y value.

Returns:

Type Description
integer The clutter index.