Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
scottstephan's avatar
scottstephan
Honored Guest
13 years ago

Using controller axis for Y movement in Oculus Prefab

I'm currently working on a project with a partner and we're sharing custody of the Oculus- The biggest issue with this arrangement is that default Oculus prefabs handle y-axis rotation via the tracker in the HMD. When I don't have the HMD, it makes it impossible to debug- Is there a simple way allow Y tracking via an Xbox controller, as with the default FPS controller?

1 Reply

Replies have been turned off for this discussion
  • Not sure if this is the best way to go about it, but I do it like so: create a "Cameras" empty GameObject and drag the OVR Camera Controller into it. Also create a normal camera and put it in there. Make sure both cameras have zeroed out position and rotation. Attach a script to the normal camera so you can pivot it around however you want with the XBox controller. When you're working on the game without the Rift, disable the Oculus camera and enable the normal one. You can probably do this programmatically but I've always just done it manually.