Model loading · function

localiseNodes

Move each mesh into the frame of the node that placed it, and report every node's world matrix.

Explained in Importing models.

function localiseNodes(meshes: readonly MeshData[], nodes: readonly DrftNode[]): Localised
import { localiseNodes } from '@driftengine/assets';

Parameters

ParameterTypeDescription
meshesreadonly MeshData[]
nodesreadonly DrftNode[]

In depth

A mesh no node claims is passed through untouched, which is what a format carrying no hierarchy yields and is the correct no-op.