natiny_animator_set_speed

C
void natiny_animator_set_speed(NatinyAnimator animator, float speed);

Sets how fast the clip's clock runs, as a multiple of real time.

Parameters

Name Type Description
animator NatinyAnimator Animator handle from natiny_animator_create
speed float 1.0f is the clip's own pace; 0.0f freezes it; negative runs it backwards

Example

C
natiny_animator_set_speed(hero_legs, 1.5f);