# Gizmo fit to boundingbox

**URL:** https://forum.babylonjs.com/t/gizmo-fit-to-boundingbox/24969
**Category:** Questions
**Tags:** gizmo
**Created:** [November 2, 2021, 5:24pm UTC](https://forum.babylonjs.com/t/gizmo-fit-to-boundingbox/24969 "2021-11-02T17:24:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bvaisman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bvaisman/32/20835_2.png) [@bvaisman](https://forum.babylonjs.com/u/bvaisman)
#### Post date: [November 2, 2021, 5:24pm UTC](https://forum.babylonjs.com/t/gizmo-fit-to-boundingbox/24969/1 "2021-11-02T17:24:30Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/0/20966cf31d913ed5eaf978fb98db2da5922e63ef.jpeg)

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

Could you help me ?

Thanks,

Boris

---

<div class="post-metadata">

### Author: ![msDestiny14](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/msdestiny14/32/9572_2.png) [@msDestiny14](https://forum.babylonjs.com/u/msDestiny14)
#### Post date: [November 2, 2021, 5:38pm UTC](https://forum.babylonjs.com/t/gizmo-fit-to-boundingbox/24969/2 "2021-11-02T17:38:14Z")

</div>

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. 🙂

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

[Babylon.js Playground](https://playground.babylonjs.com/#5G9MC5).  
`var boundingBox = BABYLON.BoundingBoxGizmo.MakeNotPickableAndWrapInBoundingBox(gltfMesh)`

Also looks like you can customize gizmos too! 😂 [Gizmos | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/mesh/gizmo#gizmo-customization) Let me take more of a look and see if I can provide another example shortly.

---

<div class="post-metadata">

### Author: ![bvaisman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bvaisman/32/20835_2.png) [@bvaisman](https://forum.babylonjs.com/u/bvaisman)
#### Post date: [November 3, 2021, 9:16am UTC](https://forum.babylonjs.com/t/gizmo-fit-to-boundingbox/24969/3 "2021-11-03T09:16:17Z")

</div>

You’re right.

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

Thanks for your help.
