# Gizmo not updating rotation values in mesh

**URL:** <https://forum.babylonjs.com/t/gizmo-not-updating-rotation-values-in-mesh/31760>\
**Category:** Questions\
**Created:** [June 29, 2022, 7:12am UTC](https://forum.babylonjs.com/t/gizmo-not-updating-rotation-values-in-mesh/31760 "2022-06-29T07:12:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![farukcelim](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/farukcelim/32/27134_2.png) [@farukcelim](https://forum.babylonjs.com/u/farukcelim)\
**Post date:** [June 29, 2022, 7:12am UTC](https://forum.babylonjs.com/t/gizmo-not-updating-rotation-values-in-mesh/31760/1 "2022-06-29T07:12:16Z")

</div>

Hello  
I’ve spent too much time dealing with this problem and can’t think of it anymore. I am changing the rotation of the mesh with Gizmo, but I can’t see the new changed rotation value anywhere. Mesh’s rotation resets as value, but as I want in the image. I do not get an error in Playground, but there is a problem in my own project. I request your help.  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/1/8/18029b897ca4eb2763c335142020d923ff821651.png)  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/9/9/997d9cc0fa41bb739dd80b2f432e75b069465e96.png)  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/1/8/18f64a95a08ffdf2fac6120d56d26ebc78b8f42a.png)  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/e/f/eff7e369c65acb964c91ffe353b95a358699a04c.png)

---

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [June 29, 2022, 7:47am UTC](https://forum.babylonjs.com/t/gizmo-not-updating-rotation-values-in-mesh/31760/2 "2022-06-29T07:47:23Z")

</div>

Hey.

Three things come to mind. Maybe it could help you, but It’s hard to tell.

1. Try setting up `editMesh.rotationQuaternion = null` and then try to read the values.

2. Try calling `editMesh.computeWorldMatrix(true)` and then try to read the values.

3. Did you attach gizmo to the editMesh directly? If you attached it to a parent or something, local rotation values for editMesh might not be affected.

---

<div class="post-metadata">

**Author:** ![farukcelim](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/farukcelim/32/27134_2.png) [@farukcelim](https://forum.babylonjs.com/u/farukcelim)\
**Post date:** [June 29, 2022, 8:00am UTC](https://forum.babylonjs.com/t/gizmo-not-updating-rotation-values-in-mesh/31760/3 "2022-06-29T08:00:06Z")

</div>

> [@nogalo](#):
>
> 1. or editMesh might not be affected.

Unfortunately it didn’t work.The rotation value is not updating even though I tried these. Thank you for your advices. Yes, I’m throwing the mesh directly.

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/7/779d33f39ef07391292934863cf2f746f969f957.png)

---

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [June 29, 2022, 8:40am UTC](https://forum.babylonjs.com/t/gizmo-not-updating-rotation-values-in-mesh/31760/4 "2022-06-29T08:40:57Z")

</div>

Can you replicate the issue in the playground?

---

<div class="post-metadata">

**Author:** ![farukcelim](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/farukcelim/32/27134_2.png) [@farukcelim](https://forum.babylonjs.com/u/farukcelim)\
**Post date:** [June 29, 2022, 8:47am UTC](https://forum.babylonjs.com/t/gizmo-not-updating-rotation-values-in-mesh/31760/5 "2022-06-29T08:47:03Z")

</div>

Unfortunately, the project is huge. I put a rotation example but it didn’t work in the playground and the rotation values ​​changed. Because of this, I can’t share the playground, sorry.

---

<div class="post-metadata">

**Author:** ![farukcelim](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/farukcelim/32/27134_2.png) [@farukcelim](https://forum.babylonjs.com/u/farukcelim)\
**Post date:** [June 29, 2022, 8:50am UTC](https://forum.babylonjs.com/t/gizmo-not-updating-rotation-values-in-mesh/31760/6 "2022-06-29T08:50:55Z")

</div>

@nogalo I got this project from one of your posts. Applying the one here solved the problem, but I had to create separate gizmos for x, y and z. For now I will add this as a solution, but if there is an answer or improvement regarding the current problem, I will mark it as a solution.

[Babylon.js Playground (babylonjs-playground.com)](https://www.babylonjs-playground.com/#AB6ICY)

[PlaneRotationGizmo, dragging gizmos changing each value of rotation (x,y,z), not only one of the axis - Questions - Babylon.js (babylonjs.com)](https://forum.babylonjs.com/t/planerotationgizmo-dragging-gizmos-changing-each-value-of-rotation-x-y-z-not-only-one-of-the-axis/15407/2)

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

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/8/d88436133574963cf05cf8d4d8b53b483c24d5e5.png)
