What is the best gyroscope plugin to control the rotation of the Unity camera on iOS and Android?
It should run as smoothly as possible, maybe by using additional sensors like compass, accelerometer.
I read about some problems using Input.gyro on android devices, so I do not know if I should use Input.gyro. It might also be not good enough because it uses only the gyroscope sensor.
I also want full control over the image of the camera.
I can not use Unitys Virtual Reality support because it always renders with two cameras in split screen, but I also want to be able to switch to a single camera.
I found a possible solution using Unity Virtual Reality support:
-Magic Window mode-
camTrans.localRotation = XRInput.GetLocalRotation(XRNode.CenterEye);
Iām at the same point in my project. Found that the gyro calculations using the XRNode.Head works quite well. With it comes the stereoscopic, two-camera overlay on my screen. Any idea to remove this, while keep using gyro calculations from InputTracking.GetLocalRotation(XRNode.Head) ?
If you add ānoneā to the possible VR SDKs on Player Settings in the first place, you get the normal behaviour of 1 camera, BUT, if you establish the VR SDK device through the line:
Now the next issue is to force orientation to portrait, as our apps usually run in portrait mode whilst needing great gyro data⦠Afaik enabling VR Support locks the Landscape Left orientation in Player Settingsā¦