Search Unity

[AR] Track when phone camera has moved to the left or right.

Discussion in 'AR/VR (XR) Discussion' started by hedgeh0g, May 19, 2020.

  1. hedgeh0g

    hedgeh0g

    Joined:
    Jul 18, 2014
    Posts:
    102
    Hi all,

    Imagine you have your phone on your head with one of those fancy AR cardboards. I want to capture when player's head goes left or right so I can pop an event depedning on the direction.

    As far as I got I must use the camera and not the gyroscope in order to get a reference frame, but other than the theory I am clueless regarding the practice of doing so. I am currently using Vuforia, but I'm not getting much from it for this problem. Any help?

    Thanks in advance.