While trying out some extra VR-features to a project, I was wondering if I could give something back to this community … And I guess I came some what close, with this try of merging the VR device gyro-orientation and the more traditional mouseinput.
Still, a final conversion to yaw and pitch, from the lookat-object coordinates strands:
https://playcanvas.com/editor/scene/1113574
I am - as one can tell (at mouse-input.js[.onMouseMove .updateVRcoords], look-camera.js [.update]) - trying to find correlation between gyro-output at look-camera.js and yaw/pitch at mouse-input.
While there might not be an easy conversion, I hope you give it a try/and help me … or proactively make a solution, that can lay within the VR-tuts (https://developer.playcanvas.com/en/tutorials/?tags=vr) … and there by ‘fixing the challenge’ for future coders