Search Unity

Question Moving with AR camera in ARFoundation

Discussion in 'AR' started by Sebight, Jul 20, 2021.

  1. Sebight

    Sebight

    Joined:
    Sep 26, 2020
    Posts:
    26
    Hello everyone, I have stumbled upon a problem with ARFoundation, that I cannot seem to get hang of.

    I have the classic placer system in my AR scene, where you basically click and it places the object on the point you aim your phone camera. What do I do now is I do not set the position of the object I place, though I set the object position to 0,0,0 and then just move the ARSessionOrigin, which has the same effect. Now what I want to do is rotate the camera around the object, making the object spinning effect.

    It is basically same as if I would do it with transform of the object, calling .transform.rotation on it, but the object is statically batched, so I cannot move with it. Any idea how would I go around it?

    Thank you everyone for any help!