Problem with interactivity after animation

Hello everyone.

I will try to explain my problem. When a run my code, the two plates of the top ( red and green) are interactive (on click) and move correctly. If I play the animation ( on the top left ), this interactivity no longer works as before and i want this interactivity works like the first time.

I set up a playground so you can see the problem there: Babylon.js Playground

Sorry for my bad english, if you don’t understand something don’t hesitate to ask me.

Thank you for your help.

Nice playground :wink:
The problem lies on line #278:

You started the animation in loop mode (lood = true) with a loop status set to: BABYLON.Animation.ANIMATIONLOOPMODE_CONSTANT (line #262) which force the animation to stay constant at the end, preventing your interactive animation to work

1 Like

Ok I thought it’s a little bit more difficult to solve :laughing:

Thanks a lot, you saved a lot of my time.

1 Like