Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    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.
     
unityunity