Playing an animationGroup backward gives an error

#1

Hello guys,

Last one before going on vacation :slight_smile:

I’m play with the animation groups and modify on the fly how the animation should play.
Going frontward there is no issue but when trying to go backward I have an error.
I guess the keys index doesn’t exist.
I’m not sure if this was planned but here is a pg with the error reproduced

https://www.babylonjs-playground.com/#CBGEQX#17

This is the error displayed

TypeError: Cannot read property 'frame' of undefined
0 Likes

#2

Here you go: https://www.babylonjs-playground.com/#CBGEQX#18

0 Likes

#3

Ohhh, the speedratio needs to be inversed also.
That’s a bit weard no ?

At least it works :slight_smile:

0 Likes

#4

I fixed it for the next commit :wink:

1 Like

#5

Thank you all !

0 Likes