How to apply animation group to another mesh with same skeleton?

How can I apply animations to my avatars in real-time? So in my game, an avatar will compete in a dance competition and I want to apply the dancing animations to him only at that time. These animations are different according to which nightclub you go to.

With skeletons you could just do this copyAnimationRange from one skeleton to another. I’d like to do the same but with animation groups.

ooh, I just noticed that AnimationGroup - Babylon.js Documentation now works properly in the latest preview version Babylon.js v4.1.0-rc.0

Yay! :slight_smile:

1 Like

Actually, this doesn’t work properly :disappointed:

When you play the animation group from the source skeleton it triggers the other one as well and the bones are at the exact same place. I cannot trigger them separately or even position the other avatar differently.

Is it possible to copy animations using animationGroups?

I believe it works as expected:

Just need to make sure to pause and play the right one on time

1 Like