I am using a GLTF model animation.I have written a code to ping-pong the animation using onAnimationEnd event and reversing keyFrames and negating the speedRatio. It works fine once but doesn’t loop.i.e. onAnimationEnd is called only once when animation goes from 0 to 9, not when it goes again from 9 to 0.
What could possibly be wrong?
Also one question not related to this : animation.animatables[0].masterFrame works only once when the animation hasn’t completed. Can anyone please explain animatables masterFrame. I just want to know the current frame always.