natiny_animator_set_mask
void natiny_animator_set_mask(NatinyAnimator animator, const char* bone, bool with_children);
Confines this layer to one bone, and optionally to everything below it, so that it says nothing at all about the rest of the skeleton.
Parameters
| Name | Type | Description |
|---|---|---|
animator |
NatinyAnimator |
Animator handle from natiny_animator_create |
bone |
const char* |
Null-terminated bone name to start at; NULL or "" removes the mask; the string is read during the call |
with_children |
bool |
Whether the bones below it are included |
Example
natiny_animator_set_mask(arms, "Torso", true);