Hello All !
I am working on a project in my work, we are using babylon.js. I am not allowed to show some stuff, but I hope I will tell everything clearly.
I am working on a Trawl project. I have glb file with trawl and animations.
In sandbox everything works fine. I have 2 animations which have the same amount of frames, time etc. One is for Left side, other for right side. Let’s say mirror reflection.
const leftPart = scene.getAnimationGroupByName(“animationName_Left”);
const rightPart = scene.getAnimationGroupByName(“animationName_Right”);
function triggered by click on button -
Ok, and the right side works fine, it goes from 102 to 203 and stops, but the left one doesn’t work. I don’t have any errors in the concole, when i console.log(leftPart) i get the info about animations group etc, and what’s more when I tried in the same function :
the animations worked fine, from start to end, and then again because of the true in loop .
And here comes the question. Why the animation doesnt work with .start method , but with .play it does? Why one animation works with start but the other doesnt ? Is it some issue with glb file? But on the other in sandbox everything looks fine . Where should I look or check ?
If you need more info I will try to give you them. For me it is strange situation, I worked with many projects before, in every project there were animations and I used .start method with no problems . This is the first time .
I will read any suggestions with pleasure .
Have a Great Day!