Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice
  2. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Can we do oculus camera reset in code when we are using Unity XR Rig

Discussion in 'AR/VR (XR) Discussion' started by Saravana_Vins, Nov 26, 2021.

  1. Saravana_Vins

    Saravana_Vins

    Joined:
    May 5, 2017
    Posts:
    26
    We are implement the 6DOP Application in Quest using Unity XR Plugin.
    we are facing the issue distance between rig and camera while player movement by physical walk, by fix this issue, the default option is there in oculus by long press the home button, but we need to reset the distance between rig and camera position without long press the oculus home button.

    Please anyone help us to fix this.
     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    10,759
    To account for physical walk, I believe, you'd need to alter the way you're handling XR Rig.

    Basically you shouldn't assume that root of XR rig corresponds to a specific point in space. And if HMD position is used to drive a character, then the character can be placed outside of XR rig and could read HMD/controller position/orientation directly.
     
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    400
    I personally put a collider on the camera object to account for that, depends on your needs
     
unityunity