Search Unity

Question AR Core - Instantiated Object Moves With you

Discussion in 'AR/VR (XR) Discussion' started by unity_T9prR4zeecc8lg, Jul 13, 2020.

  1. unity_T9prR4zeecc8lg

    unity_T9prR4zeecc8lg

    Joined:
    Oct 4, 2019
    Posts:
    6
    Hi guys.

    I'm using AR Core Surface Tracking to create an AR portal effect. However, the instantiated objects "move" about 1m per 3-4m of my movement. I'm working on top of the HelloAR example from the SDK, so the AR controller code is the same, I'm only changing what is instantiated.

    Keep in mind that the objects are large (max 3m height in real world), I placed them all inside an empty parent object (which is instantiated) and placed the parent inside an anchor.

    Why does this happen? How can I fix it?

    Thx in advance!
     
  2. unity_T9prR4zeecc8lg

    unity_T9prR4zeecc8lg

    Joined:
    Oct 4, 2019
    Posts:
    6
    Managed to fix it myself. Turns out it was happening because I changed the camera's coordinates. I reset them to (0,0,0) and it's working a lot better.