Documentation
    Preparing search index...

    Interface TransformDocument

    A node's local transform (§7).

    Every field is optional and absent means default: the identity transform serializes to {} (and is then dropped from the node entirely), which is what makes a hand-edited scene file readable and its diffs small (§79).

    matrixAutoUpdate: false is §7's user-owned matrix: the authored position/rotation/scale/pivot are still recorded (they are the node's stored state, stale or not — §7 never back-derives them) and TransformDocument.localMatrix carries the sixteen column-major elements the user wrote. A document that supplies localMatrix while leaving matrixAutoUpdate at its default is refused rather than silently stripped: under auto-update the engine owns that matrix and would recompose over it.

    interface TransformDocument {
        localMatrix?: readonly number[];
        matrixAutoUpdate?: boolean;
        pivot?: Vector3Document;
        position?: Vector3Document;
        rotation?: QuaternionDocument;
        scale?: Vector3Document;
    }
    Index
    localMatrix?: readonly number[]

    Sixteen column-major elements; only with matrixAutoUpdate: false.

    matrixAutoUpdate?: boolean

    Absent means true — the engine owns the local matrix (§7).

    Pivot the rotation and scale act about; absent means the node origin.

    position?: Vector3Document

    Local translation; absent means the origin.

    Local rotation; absent means identity.

    Local scale; absent means (1, 1, 1).