So I’ve got a couple of meshes exported from blender. I’d like to create an AnimationGroup using animations from these meshes. Is this possible?
So far, I’ve tried:
var animationGroup = new BABYLON.AnimationGroup(“my-animation-group”);
let firstAnimatable = firstSkeleton.beginAnimation(firstAnimationName);
And did the same thing for my secondSkeleton, thirdSkeleton, etc. And then, I tried the following:
// First try.
// Second try. I noticed the “Target” on the animations was “_matrix”, so I tried getting the animations using getAnimationByTargetProperty("_matrix")
My third try was just like the first try, but instead of just adding firstAnimatable.getAnimations().animation, I added all the animations to the group (i.e. firstAnimatable.getAnimations().animation, firstAnimatable.getAnimations().animation, firstAnimatable.getAnimations().animation, etc…)
None of the approaches worked: every time I did animationGroup.play(), nothing happened. Any tips?