# After operating with the ScaleGizmo class in babylonjs, the problem of rotation cannot be solved after cutting back to the RotationGizmo

**URL:** <https://forum.babylonjs.com/t/after-operating-with-the-scalegizmo-class-in-babylonjs-the-problem-of-rotation-cannot-be-solved-after-cutting-back-to-the-rotationgizmo/55099>\
**Category:** Bugs\
**Tags:** transformnode, rotation, scaling\
**Created:** [December 2, 2024, 4:01am UTC](https://forum.babylonjs.com/t/after-operating-with-the-scalegizmo-class-in-babylonjs-the-problem-of-rotation-cannot-be-solved-after-cutting-back-to-the-rotationgizmo/55099 "2024-12-02T04:01:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zertaul](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zertaul/32/37493_2.png) [@zertaul](https://forum.babylonjs.com/u/zertaul)\
**Post date:** [December 2, 2024, 4:01am UTC](https://forum.babylonjs.com/t/after-operating-with-the-scalegizmo-class-in-babylonjs-the-problem-of-rotation-cannot-be-solved-after-cutting-back-to-the-rotationgizmo/55099/1 "2024-12-02T04:01:13Z")

</div>

As shown in the question, when I was developing the animation function at the beginning, I found that no matter how I scaled it, I couldn’t rotate the model through the RotationGizmo component. At first, I thought it was a problem with my own code, but later I realized that even without animation, I still couldn’t use RotationGizmo to rotate the model simply by using Gizmo. I want to know the reason for this

---

<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:** [December 2, 2024, 8:44am UTC](https://forum.babylonjs.com/t/after-operating-with-the-scalegizmo-class-in-babylonjs-the-problem-of-rotation-cannot-be-solved-after-cutting-back-to-the-rotationgizmo/55099/2 "2024-12-02T08:44:43Z")

</div>

Did you check the console log? Non uniform scaling can be the cause, depending on order of operations.

---

<div class="post-metadata">

**Author:** ![zertaul](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zertaul/32/37493_2.png) [@zertaul](https://forum.babylonjs.com/u/zertaul)\
**Post date:** [December 3, 2024, 1:35am UTC](https://forum.babylonjs.com/t/after-operating-with-the-scalegizmo-class-in-babylonjs-the-problem-of-rotation-cannot-be-solved-after-cutting-back-to-the-rotationgizmo/55099/3 "2024-12-03T01:35:34Z")

</div>

Can non-uniform scaling achieve rotation? Has this official solved this problem?

---

<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:** [December 3, 2024, 7:54am UTC](https://forum.babylonjs.com/t/after-operating-with-the-scalegizmo-class-in-babylonjs-the-problem-of-rotation-cannot-be-solved-after-cutting-back-to-the-rotationgizmo/55099/4 "2024-12-03T07:54:17Z")

</div>

The issue resides in order of operations.  
Doing a world space non uniform scaling after a local rotation will skew the mesh.  
But doing a local space non uniform scaling and a world space rotation is fine.
