Hi, I am having an animated mesh in the scene. I am using that animation using following code
anim = scene.getAnimationGroupByName("Take 001|BaseLayer");
anim.start(false, 1.0, anim.from, anim.to, true);
It is working only once. When I trigger that next time, it is not working, After refreshing the page only, it is working further . Any solution for this.
slin
March 8, 2021, 6:38am
2
Hi @jayakannan
You need to set the first parameter to true. See: AnimationGroup | Babylon.js Documentation
If I set the first parameter as true, the animation is running in loop mode.
labris
March 8, 2021, 8:29am
4
Maybe you could kindly explain what you are trying to achieve and how your animation should behave?(Playground example is always helpful).