# Rotation gizmo doesn't work after scale gizmo

**URL:** <https://forum.babylonjs.com/t/rotation-gizmo-doesnt-work-after-scale-gizmo/39531>\
**Category:** Bugs\
**Tags:** gizmo\
**Created:** [April 1, 2023, 4:09pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-doesnt-work-after-scale-gizmo/39531 "2023-04-01T16:09:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Bozzolan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/daniel_bozzolan/32/6374_2.png) [@Daniel\_Bozzolan](https://forum.babylonjs.com/u/Daniel_Bozzolan)\
**Post date:** [April 1, 2023, 4:09pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-doesnt-work-after-scale-gizmo/39531/1 "2023-04-01T16:09:12Z")

</div>

Hi, in my scene I create position, rotation and scale gizmo on the same mesh, after using the scale gizmo the rotation gizmo doesn’t work anymore, can someone please check if there is a bug using more gizmos together?

This is the code to show you the potential bug

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

Thanks!

---

<div class="post-metadata">

**Author:** ![Daniel\_Bozzolan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/daniel_bozzolan/32/6374_2.png) [@Daniel\_Bozzolan](https://forum.babylonjs.com/u/Daniel_Bozzolan)\
**Post date:** [April 3, 2023, 10:02am UTC](https://forum.babylonjs.com/t/rotation-gizmo-doesnt-work-after-scale-gizmo/39531/2 "2023-04-03T10:02:44Z")

</div>

I pasted the code used in the playground.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [April 3, 2023, 10:28am UTC](https://forum.babylonjs.com/t/rotation-gizmo-doesnt-work-after-scale-gizmo/39531/3 "2023-04-03T10:28:51Z")

</div>

cc @Cedric

---

<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:** [April 3, 2023, 1:00pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-doesnt-work-after-scale-gizmo/39531/4 "2023-04-03T13:00:04Z")

</div>

It’s better if you can share the Playground directly. Just click on the save button and it will generate a shareable link.

---

<div class="post-metadata">

**Author:** ![Daniel\_Bozzolan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/daniel_bozzolan/32/6374_2.png) [@Daniel\_Bozzolan](https://forum.babylonjs.com/u/Daniel_Bozzolan)\
**Post date:** [April 3, 2023, 1:12pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-doesnt-work-after-scale-gizmo/39531/5 "2023-04-03T13:12:26Z")

</div>

> [@Daniel\_Bozzolan](#):
>
> var createScene = function () {  
> // Create basic scene  
> var scene = new BABYLON.Scene(engine);  
> var camera = new BABYLON.FreeCamera(“camera1”, new BABYLON.Vector3(0, 5, -10), scene);  
> camera.setTarget(BABYLON.Vector3.Zero());  
> camera.attachControl(canvas, true);  
> var light = new BABYLON.HemisphericLight(“light1”, new BABYLON.Vector3(0, 1, 0), scene);  
> light.intensity = 0.7;  
> var box = BABYLON.Mesh.CreateBox(“box1”, 1, scene);  
> box.position.y = 1;  
> var ground = BABYLON.Mesh.CreateGround(“ground1”, 6, 6, 2, scene);
> 
> ```auto
> // Create utility layer the gizmo will be rendered on
> var utilLayer = new BABYLON.UtilityLayerRenderer(scene);
> 
> // Create the gizmo and attach to the box
> var scaleGizmo = new BABYLON.ScaleGizmo(utilLayer);
> scaleGizmo.attachedMesh = box;
> var positionGizmo = new BABYLON.PositionGizmo(utilLayer);
> positionGizmo.attachedMesh = box;
> var rotationGizmo = new BABYLON.RotationGizmo(utilLayer);
> rotationGizmo.attachedMesh = box;
> 
> return scene;
> 
> ```
> 
> };

Sure, here it is:

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

---

<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:** [April 3, 2023, 1:20pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-doesnt-work-after-scale-gizmo/39531/6 "2023-04-03T13:20:58Z")

</div>

If you look at the console in the PG, you’ll see the answer and the recommended fix:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/2/f2aab51e784e7e008c11b2da8f5c3a8b8e730eb7.png)

Using the recommended fix: [Gizmo potential bug | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#PXDFBL#1)
