NAME
add_skeleton — the nodes, the bones and the skin
SYNOPSIS
add_skeleton(g, cr)
DESCRIPTION
A root node named after the creature; one node per bone with its translation from its parent and no rotation; the skin, with every bone as a joint and its inverse bind matrix (a move by minus the bone's world position, since nothing is rotated at rest).
PARAMETERS
g: the GLB. cr: the creature.
RETURN VALUE
(bone names, world positions, node index of each bone, joint index of each bone).
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
