Animation · function
applyPoseToNode
Write one joint of a pose onto a node's local transform. Allocates nothing.
Explained in Animation.
function applyPoseToNode(pose: Pose, joint: number, node: SceneNode): voidimport { applyPoseToNode } from '@driftengine/animation';Parameters
| Parameter | Type | Description |
|---|---|---|
pose | Pose | |
joint | number | |
node | SceneNode |
In depth
markMoved is called because SceneNode says at its own fields that writing a transform in
place does not mark it dirty. Omitting it is invisible on the first frame — a fresh node is
dirty already — and shows on the second as a node whose world matrix never catches up, which
reads as an animation that plays once and freezes.