Reverse Play and Pause Animations

Hello all,

I ran into an issue with animations where the last frame of played animation should be a state, lets call it “stance”, while on reverse play it animates back to first frame, which is idle state.

My issues:

  1. How to continue animation after pausing when forward or backward playing?
  2. How to stop animation, so it goes back to idle state, because if you stop while reverse playing animation then it doesnt return to idle pose, instead it returns to stance pose.

The playground example (original has animations from .glb):

Edit: I was able to solve #1 by using status==2, to determine if it is an unfinished, then store fromFrame and stop animationGroup like in if(group.isPlaying).

Got it: