Search Unity

ARFoundaiton aim at camera?

Discussion in 'AR/VR (XR) Discussion' started by techmage, Oct 26, 2018.

  1. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    I have a character being placed into the world with AR foundation and I am trying to make the camera look at the users phone. Which generally works, except that it is a bit off, and sometimes get way off. Basically I am just aiming various transforms at Camera.Main, I assume the transform of Camera.Main is representing where the AR User is. But like I said it is a bit off, and sometimes it goes way off.

    Does Camera.Main represent the position of the actual camera in ARFoundation? If not, what does?