You mixed skeleton and animationGroup functions. If you play an animation with animationgroup then you have use gotoFrame method, instead of returnToRest.
https://www.babylonjs-playground.com/#4HTBYP#10
Cheers!
1 Like