Forum Discussion

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

Oculus Camera object rotation

Hi,
I am new to unity but I have a basic scene, I am trying to add the Oculus camera to a Car object.
when I add the OVR camera to the car I can drive forward,backward , left and right but I cannot rotate the vehicle using a controller. it turns the camera round instead. Also when I look around using the headset it rotates the camera and the vehicle at the same time instead of just looking around.
Any advice would be greatly appreciated please
Regards

3 Replies

Replies have been turned off for this discussion
  • Can you upload a simple demo that illustrates the problem?

    I can take a look and see if I can fix it. Thanks.
  • "camster" wrote:
    Hi,
    I am new to unity but I have a basic scene, I am trying to add the Oculus camera to a Car object.
    when I add the OVR camera to the car I can drive forward,backward , left and right but I cannot rotate the vehicle using a controller. it turns the camera round instead. Also when I look around using the headset it rotates the camera and the vehicle at the same time instead of just looking around.
    Any advice would be greatly appreciated please
    Regards


    Have you attached the correct Prefab?

    In your case you want the OVRCameraController, it sounds like you have added an OVRPlayerController which is probably intercepting your controller inputs to steer.
  • If you use the OVRCameraController (not OVRPlayerController) then you can add the car's transform into the "Follow Orientation" parameter. This will make the camera feel like it's inside the car.