natiny_animator_get_weight

C
float natiny_animator_get_weight(NatinyAnimator animator);

Returns how much of the final pose this layer claims.

Parameters

Name Type Description
animator NatinyAnimator Animator handle from natiny_animator_create

Returns

Type Description
float The weight, between 0.0f and 1.0f; 0.0f for an invalid handle

Example

C
float weight = natiny_animator_get_weight(arms);
printf("upper-body blend: %.0f%%\n", weight * 100.0f);