threejs-worldgen
    Preparing search index...

    Interface Part

    One primitive of a prop: a unit shape scaled, rotated and moved in the prop's local frame (pivot at the shape's base).

    interface Part {
        color: [number, number, number];
        glow?: [number, number];
        material: PropMaterialId;
        p: [number, number, number];
        q: [number, number, number, number];
        s: [number, number, number];
        shape: ShapeId;
    }
    Index
    color: [number, number, number]

    Tint, sRGB 0…1.

    glow?: [number, number]

    Lamp glow: kind (GLOW) and phase 0…1.

    material: PropMaterialId

    Material.

    p: [number, number, number]

    Base position.

    q: [number, number, number, number]

    Rotation quaternion (x, y, z, w).

    s: [number, number, number]

    Size (width, height, depth).

    shape: ShapeId

    Unit shape.