threejs-worldgen
    Preparing search index...

    Interface RoadClassOptions

    Size and growth rules of one road class.

    interface RoadClassOptions {
        branchChance: number;
        branchSpacing: number;
        delay: number;
        segment: number;
        sidewalk: number;
        through: number;
        width: number;
    }
    Index
    branchChance: number

    Chance (0..1) that a branch is actually grown on each side.

    branchSpacing: number

    Distance between side-road branches, metres (minor roads use the district's blockSize).

    delay: number

    Growth delay for new roads of this class (lower = grown earlier, so it wins contested ground).

    segment: number

    Length of one growth step, metres (shorter = smoother curves).

    sidewalk: number

    Sidewalk width on each side, metres (0 = none).

    through: number

    Chance (0..1) that a road carries on through a junction it runs into, instead of ending there.

    width: number

    Carriageway width, metres.