Skip to content

TerrainModifier

Defined in: sdk/src/terrain/source.ts:281

A change made to the ground over part of the world (a building’s plot levelled, a riverbed cut): in world space, a height in and a height out. Modifiers are applied in the order they were set, inside their bounds only.

readonly bounds: readonly [number, number, number, number]

Defined in: sdk/src/terrain/source.ts:284

The world square it can change, [minX, minZ, maxX, maxZ], its edge included.


readonly id: string

Defined in: sdk/src/terrain/source.ts:282

apply(x, z, h): number

Defined in: sdk/src/terrain/source.ts:286

The world height at world (x, z), given the height the ground has there.

number

number

number

number