Hi
I’m loading glb model with skeleton.
Is there a way of making clone of it in a given skeleton pose?
So lets say I have a T pose. I would like to move it to flat laying. Make a clone with keeping that position and never change the skeleton position for that mesh ever again (only the entire mesh clone position, move it left right)
Then set the skeleton for instance to different position, make a new clone and put it a side.
You can imagine this as person walking next to a statues of itself. But the statues could move frozen.
Is there option to do it? Without copies of skeleton for each model clone?
Regards
Peter
Hey there!
You can totally to it with this:
@Deltakosh Hi
It works but all model clones are making the same pose as well. Like the clone is still somehow manipulating all other models.
So I load mesh with skeletons.
Make a clone
Apply new different material.
Move my skeleton to desired position.
use:
clonedMesh.applySkeleton(scene.skeletons[0]);
And the original mesh also is moved to that position.
Sorry I was not mentioning the clone! You found it so congrats!!
Hi @Deltakosh
Sorry its a typo.
It doesn’t work. All meshes are moving along.
Is there a way of doing this?
When you clone make sure to make the geometry unique else the meshes will all share the same data
Hi @Deltakosh
So how should I clone them to make them unique?
Mesh.clone()
Will not do the trick?
Here we are my friend: Babylon.js docs
@Deltakosh thanks for the info. Will test this and get back to you 
@Deltakosh
Thank you very much
worked like a charm.
Ha! That makes me happy:)