Search Unity

How ARCore Unity SDK updates Camera position and rotation?

Discussion in 'ARCore' started by xianggen, Apr 8, 2019.

  1. xianggen


    Jun 14, 2018
    As we known, Google ARCore will track the handset Camera Device Postion and Rotation. In ARCore Unity3D SDK, there is one sampe named HelloAR. In the ARCore Device component, there is one Unity Camera named "First Person Camera", it has position and rotation.

    As my understand, ARCore Unity should get the ARCore Camera Device Position and rotation, then set these two values to First Person Camera very frame.

    But after review the whole codes, I can not find such code.

    Can anyone help me?
  2. tdmowrer


    Unity Technologies

    Apr 21, 2017
    ARCore uses the Tracked Pose Driver to accomplish this. The tracked pose driver updates the transform of the GameObject it is from the source that you select; in this case, the device's color camera. You can put the Tracked Pose Driver on other GameObjects if you'd like to have their poses updated according to ARCore as well.