voxolith
API reference@voxolith/gen-terrainFunctions

terrainSize()

The map size generateTerrain builds for complete params: width and depth rounded, at least 8 columns each.

function terrainSize(params?: Partial<TerrainParams>): object;

Defined in: index.ts:256

Parameters

ParameterTypeDescription
params?Partial<TerrainParams>Overrides of DEFAULT_TERRAIN (completed first).

Returns

object

Columns along x and rows along z; heights has width * depth entries.

depth

depth: number;

width

width: number;

On this page