# Unexpected change in GizmoManager

**URL:** <https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233>\
**Category:** Questions\
**Tags:** gizmo\
**Created:** [January 10, 2023, 10:24am UTC](https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233 "2023-01-10T10:24:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![HedwigAR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hedwigar/32/33214_2.png) [@HedwigAR](https://forum.babylonjs.com/u/HedwigAR)\
**Post date:** [January 10, 2023, 10:24am UTC](https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233/1 "2023-01-10T10:24:08Z")

</div>

Hi!

I’ve looked at the boundingBoxGizmo before and it’s worked great. However, when I just got back to it I saw some weird behaviour in the example playground:

> **[Babylon.js Playground](https://playground.babylonjs.com/#4TBMBR%2333)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

If you try and rotate the mesh using the gizmo it does nothing. From the console I can see this warning:  
`BJS - [11:20:55]: Unable to use a rotation gizmo matching mesh rotation with non uniform scaling. Use uniform scaling or set updateGizmoRotationToMatchAttachedMesh to false.`

I’ve tried setting the updateGizmoRotationToMatchAttachedMesh, but that also doesn’t make it work. Is there something else I have to implement to make this work again?

Thanks!

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 10, 2023, 10:51am UTC](https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233/2 "2023-01-10T10:51:39Z")

</div>

cc @Cedric, but as the console warning says, rotation gizmo doesn’t work with non uniform scaling, so I’m not sure you can do something about that.

---

<div class="post-metadata">

**Author:** ![HedwigAR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hedwigar/32/33214_2.png) [@HedwigAR](https://forum.babylonjs.com/u/HedwigAR)\
**Post date:** [January 10, 2023, 10:56am UTC](https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233/3 "2023-01-10T10:56:09Z")

</div>

Hi! Thanks for your quick response. The thing is, it used to work so I was wondering what changed.

Thanks to your comment I did realize that I misread the console warning and I thought it mentioned non uniform rotation. So I’ll continue on finding out how I can change the non uniform scaling 😃

---

<div class="post-metadata">

**Author:** ![HedwigAR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hedwigar/32/33214_2.png) [@HedwigAR](https://forum.babylonjs.com/u/HedwigAR)\
**Post date:** [January 10, 2023, 12:23pm UTC](https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233/4 "2023-01-10T12:23:02Z")

</div>

Oh, non uniform scaling is just when one of the xyz values isn’t the same as the others. But even if I make it uniform in this example I can’t rotate the meshes.

> **[Babylon.js Playground](https://playground.babylonjs.com/#4TBMBR%2398)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

So maybe that warning was about something else? Since the issue is still there even when the scaling is uniform.

---

<div class="post-metadata">

**Author:** ![HedwigAR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hedwigar/32/33214_2.png) [@HedwigAR](https://forum.babylonjs.com/u/HedwigAR)\
**Post date:** [January 10, 2023, 12:27pm UTC](https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233/5 "2023-01-10T12:27:43Z")

</div>

Oh, even more interesting. If I move the models from either the first or second playground and then try to rotate them with the boundingboxgizmo it snaps to a certain rotation and is then frozen again.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 10, 2023, 1:21pm UTC](https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233/6 "2023-01-10T13:21:16Z")

</div>

> [@HedwigAR](#):
>
> But even if I make it uniform in this example I can’t rotate the meshes.

The rotation gizmo does work for me in this playground (after I hit “e” to make it visible).

---

<div class="post-metadata">

**Author:** ![HedwigAR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hedwigar/32/33214_2.png) [@HedwigAR](https://forum.babylonjs.com/u/HedwigAR)\
**Post date:** [January 10, 2023, 1:22pm UTC](https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233/7 "2023-01-10T13:22:25Z")

</div>

Ah, you’re right, it’s just the boundingbox gizmo that doesn’t work.

---

<div class="post-metadata">

**Author:** ![HedwigAR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hedwigar/32/33214_2.png) [@HedwigAR](https://forum.babylonjs.com/u/HedwigAR)\
**Post date:** [January 10, 2023, 2:15pm UTC](https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233/8 "2023-01-10T14:15:52Z")

</div>

This used to work in previous versions though, so in version 5.2.0 I can rotate a mesh using the bouningboxgizmo even if the scaling isn’t uniform.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 10, 2023, 2:52pm UTC](https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233/9 "2023-01-10T14:52:42Z")

</div>

cc @Cedric, I think there was some bug when using the rotation gizmo, that’s why it now logs a warning instead.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [January 11, 2023, 8:56am UTC](https://forum.babylonjs.com/t/unexpected-change-in-gizmomanager/37233/10 "2023-01-11T08:56:34Z")

</div>

it looks like the same issue as : [Bounding box rotation in Gizmo is not working - #2 by Deltakosh](https://forum.babylonjs.com/t/bounding-box-rotation-in-gizmo-is-not-working/37245/2)  
idk why or how it broke. I’m on it.
