Search Unity

How to Set World Origin? (ARCore)

Discussion in 'AR/VR (XR) Discussion' started by CJRobertson932, Jun 25, 2018.

  1. CJRobertson932

    CJRobertson932

    Joined:
    Jul 11, 2016
    Posts:
    6
    Howdy there!

    I was wondering if anyone knew of a way to set the world origin for ARCore? For example, something like being able to touch a tracked plane and ARCore moves it's tracking origin to that point.

    I was digging through the ARSessionOrigin class API which looked promising at first, but unless I missed something, nothing there let's me do what I'm attempting to accomplish. For the sake of sanity I tried setting the ARSessionOrigin gameobject in my project to a new point in the world, but that doesn't seem to work since nothing seems to update/happen.

    ARSessionOrigin API: https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@1.0/api/UnityEngine.XR.ARFoundation.ARSessionOrigin.html
     
  2. alikanat

    alikanat

    Joined:
    Aug 8, 2018
    Posts:
    7