Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Move XROrigin and the camera drifts from parent

Discussion in 'VR' started by Murray_Zutari, Apr 5, 2022.

  1. Murray_Zutari

    Murray_Zutari

    Joined:
    Jun 1, 2017
    Posts:
    45
    If I generate a XR Origin (action-based) it spawns at world zero. If I try move it to another position, the camera drifts but its transform still reads that it's at 0,0,0 in relation to its parent the Camera Offset, which also reads 0,0,0 in relation to the XR Origin parent.

    Using OpenXR 1.3.1, v2021.2.15f

    EDIT: I tested this in a version of 2020.3 and it also happens. However, it only happens once I install the Interaction Toolkit v2.

    upload_2022-4-5_11-4-35.png
     
    Last edited: Apr 5, 2022
    JPTAR likes this.
  2. DaveRed52

    DaveRed52

    Joined:
    Jan 7, 2023
    Posts:
    4
    Hi Murray, Did you ever manage to figure this out? I am having this issue also in 2021.3.16f, I have tried rebuilding the Origin from scratch, making new projects and many other fixes and nothing seems to work for me.
     
  3. VRDave_Unity

    VRDave_Unity

    Unity Technologies

    Joined:
    Nov 19, 2021
    Posts:
    217
    Hey @DaveRed52 and @Murray_Zutari,
    Can you tell me how you are moving the origin? I saw the XR Interaction Toolkit mentioned, so I would like to understand if this is from teleporting or is there another mechanism for movement?
     
  4. jaschott

    jaschott

    Joined:
    Dec 6, 2021
    Posts:
    3
    I think he is referring to just moving the XR origin in the scene using the handles.
     
  5. JPTAR

    JPTAR

    Joined:
    May 16, 2022
    Posts:
    3
    I am also having this issue, it appears that whenever the origin is moved, the camera is moved twice. For example, moving the origin to 24,0,643 results in the camera being displaced from the origin. However, if the camera is given the local coordinates of -24,0,-643 then the camera and origin align perfectly. I realize this doesn't answer your question, but I hope it will help contribute to a solution.
     
  6. Sangsterrow

    Sangsterrow

    Joined:
    Apr 21, 2023
    Posts:
    1
    Is there any news on potential fixes for this issue? It's making developing for VR and XR devices more difficult than it should be.