skeleton module
Bones under a rig node: their rest pose and the order a skin numbers joints in. A bone is any node carrying bone2d or bone3d.
本頁內容
Bones under a rig node: their rest pose and the order a skin numbers joints in. A bone is any node carrying bone2d or bone3d.
3 functions, 0 constants. Scripts reach it as skeleton::.
Functions
Argument kinds are the script values a call passes: node is a node handle, any a table or value of any kind, fn a callback.
| function | acts on | what it does |
|---|---|---|
apply_rest(node: node) |
— | Move every bone under the node back to its rest transform. |
bones(node: node) |
— | The bones under the node in tree order, the order a skin numbers them in, the node itself first when it is one. |
overwrite_rest(node: node) |
— | Record every bone's current transform under the node as its new rest pose. |