Search Unity

Question [Oculus] Prevent camera reset when losing head tracking

Discussion in 'VR' started by Cris_2013, Jul 21, 2022.

  1. Cris_2013

    Cris_2013

    Joined:
    Nov 25, 2017
    Posts:
    39
    Hi there,

    I am using the Oculus Integration asset, and the OVR Camera Rig prefab that comes within.
    The game we are working on, places the camera in a fixed position, and we are using eye level tracking, since the player is in a stationary position (he has a degree of freedom, but cannot walk around the scene freely - aka cockpit style).
    However when the player takes out the headset, the cameras go to a "reset" position, I would like that not to happen.
    We were using Unity 2019 until recently with an old Oculus Integration, and it was working fine (we could move the headset without wearing it and the camera was moving properly in Unity, which worked great for debugging), however when we updated to Unity 2022 and the latest Oculus Integration, the camera resets when no one is wearing the headset.

    Please can someone help me to fix this (so camera always move according to the current position of the headset regardless if it on the head of the player or not).

    Many thanks in advance for your help.
     
  2. rwblodgett

    rwblodgett

    Joined:
    Apr 4, 2017
    Posts:
    67
    Rather than "Eye" tracking, have you tried the new "Stage" tracking?