# \[bug\]boudingBoxGizmo change rotation position and scaling

**URL:** <https://forum.babylonjs.com/t/bug-boudingboxgizmo-change-rotation-position-and-scaling/47729>\
**Category:** Bugs\
**Created:** [February 1, 2024, 10:54am UTC](https://forum.babylonjs.com/t/bug-boudingboxgizmo-change-rotation-position-and-scaling/47729 "2024-02-01T10:54:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Happy0Ending](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/happy0ending/32/26835_2.png) [@Happy0Ending](https://forum.babylonjs.com/u/Happy0Ending)\
**Post date:** [February 1, 2024, 10:54am UTC](https://forum.babylonjs.com/t/bug-boudingboxgizmo-change-rotation-position-and-scaling/47729/1 "2024-02-01T10:54:26Z")

</div>

[Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#5G9MC5#287)  
this is my PG,I load a glb model by the function ImportMesh,firstly, I change the mehses[0].scaling = 12;  
and then I change the gizmo.attachedMesh,a disaster has occurred!

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [February 1, 2024, 12:48pm UTC](https://forum.babylonjs.com/t/bug-boudingboxgizmo-change-rotation-position-and-scaling/47729/2 "2024-02-01T12:48:01Z")

</div>

What is it that you want to achieve with the mesh? If you want to resize the mesh and attach to it you can do this: [Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#5G9MC5#288)

---

<div class="post-metadata">

**Author:** ![Happy0Ending](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/happy0ending/32/26835_2.png) [@Happy0Ending](https://forum.babylonjs.com/u/Happy0Ending)\
**Post date:** [February 2, 2024, 4:04am UTC](https://forum.babylonjs.com/t/bug-boudingboxgizmo-change-rotation-position-and-scaling/47729/3 "2024-02-02T04:04:28Z")

</div>

My mother tongue is not English, please forgive me for some grammar problems。

I am creating a feature to select a grid of a GLB model and display its outline using BoundingboxGizmo. I am importing the GLB model using importMesh, which has a root node, and sometimes I scale the root node. When I hover the mouse over the root’s child mesh, I use boundingboxGizmo. attachedMesh=this childMesh. In PG, I use a timer to simulate mouse operations.

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [February 2, 2024, 11:30am UTC](https://forum.babylonjs.com/t/bug-boudingboxgizmo-change-rotation-position-and-scaling/47729/4 "2024-02-02T11:30:44Z")

</div>

You can use the same technique to attach to multiple meshes: [Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#5G9MC5#293)
