threejs-worldgen
    Preparing search index...

    Interface VehiclePlacementRule

    A vehicle's placement rule plus the network it moves on.

    interface VehiclePlacementRule {
        biomes?: string[];
        depth?: [min: number, max: number];
        height?: [min: number, max: number];
        minBiomeWeight?: number;
        nearWater?: number;
        network: "road" | "rail" | "sea" | "air" | "pad";
        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.

    network: "road" | "rail" | "sea" | "air" | "pad"

    Roads, rails, open water, airspace or a launch pad.

    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.