threejs-worldgen
    Preparing search index...

    Interface DistrictStyle

    Layout and building rules for one kind of district.

    interface DistrictStyle {
        blockSize: number;
        coverage: number;
        floors: [number, number];
        lotArea: number;
        lotWidth: number;
        setback: number;
    }
    Index
    blockSize: number

    Spacing of minor streets, metres (0 = no minor streets, e.g. fields and parks).

    coverage: number

    Chance (0..1) that a lot with street frontage gets a building.

    floors: [number, number]

    Floor count range: the low end at the settlement edge, the high end where density peaks.

    lotArea: number

    Target lot area, m². Blocks are split until lots are about this big.

    lotWidth: number

    Narrowest acceptable lot, metres (also the smallest split piece).

    setback: number

    Building setback from the lot edge, metres.