I am trying to switch between a FreeCamera and a DeviceOrientationCamera, but I am getting some “offset” issues when switching between the two where is seems to “slide” according to the last rotation made by the camera I am switching from. A simple verson of what I am trying to do can be seen in this PG. I am assuming the rotation values here are the wrong value to copy across, or am I missing something else in regards of how the orientation camera is supposed to handle rotations ? change camera with C key.
So what I want is to have the cameras have the same point of view when switching back an forth, so no visual change until the user rotates or interacts again after switching.
Any help is greatly apriciated.