natiny_animator_get_speed
float natiny_animator_get_speed(NatinyAnimator animator);
Returns the multiple of real time this animator's clock runs at.
Parameters
| Name | Type | Description |
|---|---|---|
animator |
NatinyAnimator |
Animator handle from natiny_animator_create |
Returns
| Type | Description |
|---|---|
float |
Playback-rate multiplier; 0.0f for an invalid handle |
Example
float speed = natiny_animator_get_speed(hero_legs);
printf("%.2fx\n", speed);