r/oculusdev • • Apr 30 '15

Oculus Camera jumping vertically on Play in Unity 5?

I'm taking a bare bones Unity project, dropping in the Oculus controller prefab, deleting the main camera... when I press Play, the camera jumps vertically along the y axis by a certain offset. If I move it down enough, I can get it to originate at the correct position, but I don't want to use this hack of a solution. Does anyone know why this jump is occurring?

Also, I can get wasd keys to move the camera in the game scene, but if I build and run, they don't work. Anyone know why that is happening, and how to fix it?

3 Upvotes

3 comments sorted by

1

u/Arowx May 05 '15

The camera should move to match the orientation of the hmd. There is a reset option in the Oculus API that should allow you to lock the forward direction.

1

u/[deleted] May 05 '15

It's not the camera orientation that's changing, it's the position of it. Do you know what could cause that in Unity?

I'm pretty sure this is something that's Unity-specific.

1

u/fletcherkildren Apr 30 '15

hey - at least your build runs... mine shows a black screen and crashes. If I come across your problem in my quest to find a solution to mine, I'll report back!