hex-world
    Preparing search index...

    Interface ScatterRecipePart

    interface ScatterRecipePart {
        primitive: ScatterPrimitive;
        size: number | [number, number, number];
        position?: [number, number, number];
        rotation?: [number, number, number];
        color: number;
        role?: ScatterPartRole;
        detail?: number;
        bend?: number;
        repeat?: ScatterRepeat;
    }
    Index

    Properties

    primitive: ScatterPrimitive
    size: number | [number, number, number]

    Size as [width, height, depth] in recipe units (the recipe is fitted to its height afterwards, so these are proportions). A single number is uniform.

    position?: [number, number, number]

    Offset of the part's base (its lowest point on its own axis) from the recipe origin. Default [0, 0, 0].

    rotation?: [number, number, number]

    Euler rotation in degrees, applied before the position.

    color: number

    Hex colour.

    detail?: number

    Detail: radial segments for cones, cylinders, and segments (default 7), subdivision level for spheres and lobes (default 0).

    bend?: number

    For segment: how far the piece bends over its length, degrees, leaning toward +X before rotation. For frond: how far the tip droops below the base direction, degrees. Default 0.

    repeat?: ScatterRepeat