Model loading · function

localMatrix

The object's transform relative to its parent: location, rotation and scale, deltas folded in.

Explained in Importing models.

function localMatrix(object: BlendStruct, values?: ReadonlyMap<string, number>): Mat4
import { localMatrix } from '@driftengine/assets';

Parameters

ParameterTypeDescription
objectBlendStruct
values?ReadonlyMap<string, number>

In depth

values, where given, overrides what the file stores with what an animation says at a frame, keyed by Blender's data path and index — location[0], rotation_quaternion[3] — which is what Animation.values fills (blendAnimation.ts).