Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

How to track Motion in AR Foundation.

Discussion in 'AR/VR (XR) Discussion' started by HardikShah, Aug 9, 2019.

  1. HardikShah

    HardikShah

    Joined:
    May 21, 2018
    Posts:
    2
    Hello friends, maybe my question is like a noob, but is struggling to get device position and orientation from starting point.

    In Ar Core, we can get
    Code (CSharp):
    1. Vector3 currentARPosition = Frame.Pose.position;
    like this how can I get position and rotation of the handheld device in Ar foundation. ?
     
  2. HardikShah

    HardikShah

    Joined:
    May 21, 2018
    Posts:
    2
    I am not sure it's the right way or not but, getting a transform of Tracked Pose Driver I am able to get the position and rotation of the device.