Gizmo fit to boundingbox

Hi everybody,

I have a complex mesh with submeshes and i want to design the bounding box and the boundingbox gizmo.

here’s the result

I don’t understand why the boundingbox gizmo doesn’t fit to the boundingbox.

Could you help me ?

Thanks,

Boris

Hey there! Do you have an example playground for this? I’d love to check this out with your specific case just to make sure. :slight_smile:

Reading the documentation doesn’t looking like this is the default behavior. Looks like you might need MakeNotPickableAndWrapInBoundingBox

Babylon.js Playground.
var boundingBox = BABYLON.BoundingBoxGizmo.MakeNotPickableAndWrapInBoundingBox(gltfMesh)

Also looks like you can customize gizmos too! :joy: Gizmos | Babylon.js Documentation Let me take more of a look and see if I can provide another example shortly.

1 Like

You’re right.

I’ve found the solution with gizmo.ignoreChildren = true. It was written in the doc.

Thanks for your help.

1 Like