- Home /
Unity Oculus camera issue
Hello all, I'm a relatively new to Unity and Oculus integration.
I'm working on a 3D puzzle multiplayer game with Oculus integration, one of the mechanics deals with vision, that when you "look" at a certain object It triggers an end game state.
I am using a modified version of the RigidbodyFirstpersonController from the Standard Asset, I have a gameobject as the player with all the scripts( controller, vision detection, etc.), and a MainCamera attached to it as a child.
As of now it works without Oculus (kinda), the problem rises when I rotate the Oculus headset, it only moves the MainCamera, but not the gameobject, which is an issue because the vision detection script relies on a forward vector that stems out of the gameobject.
I'm wondering if it is somehow possible to sync/align the gameobject's rotation and the cameras so that when you rotate the Oculus headset the gameobject also rotate with it. (kind of like move your feet with you camera).
Your answer
Follow this Question
Related Questions
How to create a panning, rotating camera with Cinemachine Freelook camera? 0 Answers
Unity - Dancing Ball World camera following and rotating system 1 Answer
Would anyone teach me how to create camera movement and look controls? 2 Answers
Cinemachine input axis camera movement,cinemachine input axis control with script 1 Answer
How to allow camera to complete an upside down rotation while using LookAt() 0 Answers