Skip to main content

Module node

Module node 

Source
Expand description

Avatar node transforms and low-level world or joint matrix calculation.

Structs§

AvatarNode
One node of the avatar’s scene graph: its rest pose plus parent/child links. Indices are the glTF node indices.

Functions§

compute_joint_matrices
Computes the joint matrices for skin (world matrix × inverse bind matrix per joint), applying the given bone rotations.
compute_world_matrices
Computes the world matrix of every node from the rest pose plus the given per-node rotation deltas (initial_rotation * delta), regardless of node index order.