threejs-worldgen
    Preparing search index...

    Interface PropPlacement

    One prop instance. Plain JSON. Local axes: +y up, +z front (towards the road), fences run along x.

    interface PropPlacement {
        kind: PropKind;
        length?: number;
        line?: number;
        seed: number;
        variant?: string;
        x: number;
        y: number;
        yaw: number;
        z: number;
    }
    Index
    kind: PropKind

    What it is.

    length?: number

    Fence segment length, metres (fences only; default 2.5).

    line?: number

    Power line id: poles and pylons with the same id are strung together, in placement order.

    seed: number

    Per-instance seed: size, colour and detail variety.

    variant?: string

    One of the kind's PROP_KINDS variants (default: the first).

    x: number

    Position (frame-local), metres.

    y: number

    Ground height (local y), metres.

    yaw: number

    Rotation about up, radians (0: front faces +z).

    z: number

    Position (frame-local), metres.