How to correct switch between "walk", "jog" and "run" animations?

Hi !
I have 3 different cyclic animations of 40 frames each - walking, jogging and fast running.
There is a parameter “speed”, the type of animation depends on it.
But when switching animations - the new animation starts from the first frame, it looks bad.

How to make the begin of the new animation not from the first frame, but from the current frame number of the old animation?

Thanks !

You can use animation blending for that. Some examples:

Doc: Animations - Babylon.js Documentation

Mixing animations causes artifacts in my model, so I will repair the model

1 Like