Hi all!
I have some problems with playing animationGroup backward.
I used an animationGroup that has keys from 0 frame to 4.3 frame.
And I want to play it from 0 to 6, so I normalized it before starting the animationGroup.
What I want to do is
- to play the animationGroup
forward
bypressing 1
- to play the animationGroup
backward
bypressing 2
- to toggle the play direction by
pressing 1 and 2 alternately
When I do it on the BABYLON Playground, it works.
(You can check the PG below.)
Playground URL
https://playground.babylonjs.com/#1LNFP0#38
But when I do this on any other environments, it doesn’t work…
The animationGroup can animate backward only for the times as same as the count it animates forward.
(You can check the codepen below.)
Codepen URL
So I wonder is there any special settings for Engine or Scene to do this…
There is no bug when I don’t need to normalize the animationGroup (for example when I play it from 0 frame to 4 frame),
So I think the bug might be related to normalizing an animationGroup and playing it backward at the same time…
Is there anyone to help me to solve this problem?
Thanks in advance!