- Home /
Question by
WarwickJames · Nov 01, 2017 at 08:17 PM ·
rotationvrcamera rotate
Swapping VR axis of rotation
I have a camera I'm using in VR, and I need to change the y and z-axis of rotation...
Imagine how you would normally position the phone when using VR, now flip it so it's facing down, then turn 180 degrees around Vector.UP, and that's how the phone is position when the user's head is horizontal.
So, imagine the phone is sitting like that on your head (above your eyes), I now need to adapt the rotation so that when the head turns (which gives a z-rotation on the hpone), then is translated into a y-rotation in the world, etc...
Any help would be GREATLY approeciated :)
Comment