I’m following The Pirate fort example (https://playground.babylonjs.com/#ZRGB0Y#1), I imported a gltl with a Mixamo animation and try to active animation on pointer down, but it seems like the animation has lost the anchor point or the origin center, or something ?
Let the playground here : Playground dancer.
I’m very new to Babylon , so thanks in advance!
I would recommend simplifying the PG a bit so we only have one dancer for instance (to remove unnecessary code regarding your issue)
Thanks so much. i update the link to PG and commented the part of cloning meshes and animations, so you can see at first the original and uncomment to see the result, and I let just 2 clones for simplest understanding. And, if you don’t mode the camera and just click can see where meshes go.
Hi @Camila_Santacruz - you can take a look at this documentation page: Animating Characters | Babylon.js Documentation. It shows how to activate with the keyboard various animations of a character ringed with Mixamo. For information on how to use pointer down, you have this page: Interacting With Scenes | Babylon.js Documentation
Thank you so much, with other examples of animation I finally figured out how to play different animations on different clones.
The key point was to create a convertionMap to instance the new clones with the imported glb reference, then save clones in storeMap to finally link skeleton, bones, and animation.
At last for click purpose, fill a dancerAnimationPairings object with currentName and currentAnim to find the right one to play.
I let the PG , hope will help someone else