Instantiate a glb animation in ImportMeshAsync

Hello,

I want to instantiate a glb animation in ImportMeshAsync(), but the scaling is incorrect.

I expect to achieve this result:

Can you please let me know if there is a limitation with ImportMeshAsync(), and to instantiate a glb, the only option is to use AssetContainers instead?

Thank you
David

cc @Deltakosh

It is because when you call setParent we try to counteract the current transform. You should use .parent = here https://playground.babylonjs.com/#AJA5J6#317

1 Like

@sebavan Thank you!

So in stead of
mk.setParent(result.meshes[1].parent)
mk.position.x += 1

I should have
mk.parent = result.meshes[1].parent
mk.position.x += 100

1 Like