threejs-worldgen
    Preparing search index...

    Class Settlements

    Every settlement of a population: the population model (generatePopulation) decides where people live and how many, planCities maps its settlements onto size classes (hamlets to cities), and each gets one City.

    Index
    cities: City[] = []

    The cities, largest first.

    The population they were planned from.

    object: Group<Object3DEventMap> = ...

    Root of all settlements.

    options: SettlementsOptions = DEFAULTS

    Resolved settings.

    sites: CitySite[] = []

    Their sites, matching cities.

    • Sets the LOD camera of every city.

      Parameters

      • camera: Camera | null

      Returns void