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.
Properties
Section titled “Properties”bounds
Section titled “bounds”
readonlybounds: 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.
readonlyid:string
Defined in: sdk/src/terrain/source.ts:282
Methods
Section titled “Methods”apply()
Section titled “apply()”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.
Parameters
Section titled “Parameters”number
number
number
Returns
Section titled “Returns”number