Good way to clone a mesh with animations?

Hi, I want to periodically add an evil bird mesh with animations to a game.Much like CoD zombies. Does anyone know a good way of doing this? ATM I am cloning the mesh with SkeletonUtils. And I do not know how to use the animations of the cloned mesh.

Yes, SkeletonUtils.clone() is the right approach for cloning instances of THREE.SkinnedMesh.

Not sure what you mean by that. Cloning a skinned mesh does not clone animations. You can reused the existing animation clips and just create an instance of THREE.AnimationMixer per skinned mesh. Similar to this example:

Thank you, it works now. I was also doing other stuff the wrong way.

1 Like