threejs-worldgen
    Preparing search index...

    Interface DistrictOptions

    Where each district goes. Boundaries wobble with noise so they don't form perfect rings.

    interface DistrictOptions {
        densityFalloff: number;
        noise: number;
        parkSize: number;
        patchSize: number;
        styles: Record<District, DistrictStyle>;
    }
    Index
    densityFalloff: number

    Width (fraction of the radius) of the density peak that makes downtown tall.

    noise: number

    Boundary wobble, as a fraction of the settlement radius.

    parkSize: number

    Size of parks, metres.

    patchSize: number

    Size of industrial estates and neighbourhood patches, metres.

    styles: Record<District, DistrictStyle>

    Per-district rules.