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.