Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved Move the AR Camera in AR Foundation

Discussion in 'AR' started by danchavil, Mar 21, 2022.

  1. danchavil

    danchavil

    Joined:
    Jul 12, 2018
    Posts:
    32
    Hello everyone!!!

    when i swipe up or down i need to move the camera. something seems like google treet veiw.

    i try to move the camera transform, i try to move the parent object (this works but when i move the object only move to forward and backword no in the camera direction).

    someone know if arfoundation have a function or something that move trough the virtual objects?

    thanks and regads.
     
  2. todds_unity

    todds_unity

    Unity Technologies

    Joined:
    Aug 1, 2018
    Posts:
    324
    In AR, the camera is driven by the movement of the physical device in the real world.
     
  3. danchavil

    danchavil

    Joined:
    Jul 12, 2018
    Posts:
    32
    thanks for the answer.
     
  4. TropicalCyborg

    TropicalCyborg

    Joined:
    Mar 19, 2014
    Posts:
    28
    How can I grab the position of the camera to point a virtual object to it? I am struggling to achieve this which I though would be a simple task.
     
  5. todds_unity

    todds_unity

    Unity Technologies

    Joined:
    Aug 1, 2018
    Posts:
    324
    This would be the transform.position of the AR camera.