threejs-worldgen
    Preparing search index...

    Function roadsideLots

    • Rectangular lots lined up along both sides of every road where that side is open ground (not inside a block): linear villages, ribbon development and farmsteads. Each candidate must stay clear of blocks, other roads, water (blocked) and earlier roadside lots.

      Parameters

      • graph: RoadGraph
      • target: (x: number, z: number) => LotTarget | null

        Lot size at a point (by district); null = no lots there (e.g. parks).

      • blocked: (lot: Lot) => boolean

        True where a lot may not go (in a block, crossing a road, under water, too far out).

      • o: RoadsideOptions = DEFAULT_ROADSIDE

      Returns Lot[]