Possible bug with .instantiateHierarchy()

Upon moving the camera around the cloned? mesh Disappears, is this to be expected?
@Deltakosh

position where the left model disappears:

correct:

position where the right model disappears:

Repro:
https://playground.babylonjs.com/#IUNJ4X#4

Unfortunately this is not a bug (well kind of)
instantiateHierarchy works as intended.

Your problem comes from the fact that the clone meshes are still influenced by the central skeleton. So their bounding boxes are still in the center.

The best solution for you is to force the meshes to avoid the frustum clipping:
https://playground.babylonjs.com/#IUNJ4X#6

1 Like