Skip to content

flattenModifier

flattenModifier(id, shape, height, falloff): TerrainModifier

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

Levels the ground to world height height over a circle or a turned rectangle, blending back to the ground over falloff world units past its outline: a plot built on, a landing pad, a road’s bed.

string

{ radius: number; type: "circle"; x: number; z: number; } | { halfX: number; halfZ: number; type: "rect"; x: number; yaw?: number; z: number; }

number

number

TerrainModifier