A node in the node hierarchy

interface INode {
    extensions?: Record<string, unknown>;
    extras?: Record<string, unknown>;
    name?: string;
    camera?: number;
    children?: number[];
    skin?: number;
    matrix?: number[];
    mesh?: number;
    rotation?: number[];
    scale?: number[];
    translation?: number[];
    weights?: number[];
}

Hierarchy (view full)

Properties

extensions?: Record<string, unknown>

Dictionary object with extension-specific objects

extras?: Record<string, unknown>

Application-Specific data

name?: string

The user-defined name of this object

camera?: number

The index of the camera referenced by this node

children?: number[]

The indices of this node's children

skin?: number

The index of the skin referenced by this node

matrix?: number[]

A floating-point 4x4 transformation matrix stored in column-major order

mesh?: number

The index of the mesh in this node

rotation?: number[]

The node's unit quaternion rotation in the order (x, y, z, w), where w is the scalar

scale?: number[]

The node's non-uniform scale, given as the scaling factors along the x, y, and z axes

translation?: number[]

The node's translation along the x, y, and z axes

weights?: number[]

The weights of the instantiated Morph Target. Number of elements must match number of Morph Targets of used mesh