threejs-worldgen
    Preparing search index...

    Interface PlacementRule

    Where an asset can plausibly go — the same shape as PlacementRule in threejs-worldgen, so these rules work with its isPlausible and planSpawns as they are.

    interface PlacementRule {
        biomes?: string[];
        depth?: [min: number, max: number];
        height?: [min: number, max: number];
        minBiomeWeight?: number;
        nearWater?: number;
        slope?: [min: number, max: number];
        surface: "ground" | "water" | "underwater" | "air" | "shore";
        temperature?: [min: number, max: number];
    }

    Hierarchy (View Summary)

    Index
    biomes?: string[]

    Biome ids it belongs to (empty = any).

    depth?: [min: number, max: number]

    Water depth range, metres.

    height?: [min: number, max: number]

    Height above sea level (ground/shore) or flight height above ground (air), metres.

    minBiomeWeight?: number

    Minimum share of the matching biomes (0…1).

    nearWater?: number

    Must be within this many metres of water.

    slope?: [min: number, max: number]

    Ground slope range (rise/run).

    surface: "ground" | "water" | "underwater" | "air" | "shore"

    What it stands on or in.

    temperature?: [min: number, max: number]

    Temperature range, °C.