Skip to content

TerrainGenOptions beta ​

Interface of @v12-engine/engine

ts
export interface TerrainGenOptions

What generateTerrain makes ground from: size, seed, hills, rocks, flats and plateaus

Members ​

cliffHeight ​

ts
cliffHeight?: number;

How much higher one level stands than the one below

depth ​

ts
depth: number;

Cells along the map

flats ​

ts
flats?: {
        x: number;
        z: number;
        radius: number;
    }[];

Areas levelled to a constant height, for bases

hillHeight ​

ts
hillHeight?: number;

Height of the rolling hills

hillScale ​

ts
hillScale?: number;

Size of the hills in world units

plateaus ​

ts
plateaus?: PlateauSpec[];

High ground with cliffs and ramps

rocks ​

ts
rocks?: {
        x: number;
        z: number;
        radius: number;
        height: number;
    }[];

Steep unwalkable rock formations

seed ​

ts
seed: number;

Seed for the generator, so the same options make the same ground

width ​

ts
width: number;

Cells across the map