Hello, I’m using Unity 5.6.0b11 and I’m making a Google Cardboard app. I was wondering if it was possible to use the gyroscope to control the orbit of a camera around a point.
Something like this:
Hello, I’m using Unity 5.6.0b11 and I’m making a Google Cardboard app. I was wondering if it was possible to use the gyroscope to control the orbit of a camera around a point.
Something like this:
Yes that’s possible in script.
INIT:
child your VR cam to a central hub
translate cam some -Z in space of that parent hub
PER FRAME:
rotate hub based on rotation euler.y of the vr cam.
It would probably feel awful for user though, I recommend at least putting a rate limit on the rotation, i.e. user looks left and hub rotates at some fairly slow rate, and don’t accel/deaccel just stop and start. But even then it’d be bad, basically: disconnecting visual rotation from vestibular rotation in VR is really bad unless you’ve got salty VR legs.