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[]): Localisedimport { localiseNodes } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
meshes | readonly MeshData[] | |
nodes | readonly 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.