threejs-worldgen
    Preparing search index...

    Interface RoadAnchorOptions

    Options for roadAnchors.

    interface RoadAnchorOptions {
        junctionClearance: number;
        offset: number;
        place: "edge" | "kerb";
        sides: "both" | "one";
        spacing: number;
        surfaces: RoadSurface[];
        types: RoadType[];
    }
    Index
    junctionClearance: number

    Skip anchors this close to a junction, metres.

    offset: number

    Extra offset outwards, metres.

    place: "edge" | "kerb"

    'kerb': on the sidewalk near the kerb (or the verge on rural roads); 'edge': at the outer edge.

    sides: "both" | "one"

    Which sides: both, or alternate sides (power lines usually run on one side).

    spacing: number

    Distance between anchors along a road, metres.

    surfaces: RoadSurface[]

    Only these surfaces (empty = all).

    types: RoadType[]

    Only these classes (empty = all).