# Synchronize rotation/orientation of the mesh

**URL:** <https://forum.babylonjs.com/t/synchronize-rotation-orientation-of-the-mesh/761>\
**Category:** Questions\
**Created:** [January 14, 2019, 10:28pm UTC](https://forum.babylonjs.com/t/synchronize-rotation-orientation-of-the-mesh/761 "2019-01-14T22:28:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sybaris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sybaris/32/414_2.png) [@sybaris](https://forum.babylonjs.com/u/sybaris)\
**Post date:** [January 14, 2019, 10:28pm UTC](https://forum.babylonjs.com/t/synchronize-rotation-orientation-of-the-mesh/761/1 "2019-01-14T22:28:52Z")

</div>

Hi

I have 2 identical scene on 2 browsers.  
And I have a mesh, that I can move and rotate using this GizmoManager :

```
        this.gizmoManager = new BABYLON.GizmoManager(this.scene);
        this.gizmoManager.positionGizmoEnabled = true;
        this.gizmoManager.rotationGizmoEnabled = true;
        this.gizmoManager.scaleGizmoEnabled = false;
        this.gizmoManager.boundingBoxGizmoEnabled = false;

```

For the position, I found the solution :  
For 1st browser, I read obj3D.getAbsolutePosition();, I send the Vector3 to the 2nd browser, then I make an obj3D.setAbsolutePosition(…).

But how to synchronize also the rotation (or orientation of my mesh) please ?  
I tried obj3D.rotation.x y and z, but it does not make the sync like I want.

Thanks for advance.  
Sybaris

---

<div class="post-metadata">

**Author:** ![trevordev](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/trevordev/32/16_2.png) [@trevordev](https://forum.babylonjs.com/u/trevordev)\
**Post date:** [January 14, 2019, 11:48pm UTC](https://forum.babylonjs.com/t/synchronize-rotation-orientation-of-the-mesh/761/2 "2019-01-14T23:48:53Z")

</div>

@sybaris when you use the gizmos they will modify the mesh’s rotationQuaterion, when rotationQuaternion is being used .rotation is disabled for performance reasons, so syncing the rotationQuaternion should achieve what you are looking for.

---

<div class="post-metadata">

**Author:** ![sybaris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sybaris/32/414_2.png) [@sybaris](https://forum.babylonjs.com/u/sybaris)\
**Post date:** [January 15, 2019, 8:10pm UTC](https://forum.babylonjs.com/t/synchronize-rotation-orientation-of-the-mesh/761/3 "2019-01-15T20:10:08Z")

</div>

Hello

Wonderful, it works using rotationQuaternion 🙂

Thanks for your answer…  
Regards,  
Sybaris
