0

Since unity ar foundation didn't implement ARKit's method SetWorldOrigin() (https://developer.apple.com/documentation/arkit/arsession/2942278-setworldorigin) I want to make world center to become first found tracked image.

When I found image with ARFoundation's TrackedImageManager, I want the found tracked image's transform position to become unity world's center.

Anyone faced the same problem? How could this be made?

Kamiky
  • 601
  • 2
  • 8
  • 25

2 Answers2

0

It is apparently not possible to change the actual world origin with ARFoundation, c.f. https://forum.unity.com/threads/ar-foundation-re-positioning-world-origin.540135/. You will have to position a parent GameObject at the transform of the tracked image and position everything using local position/rotation.

kjyv
  • 586
  • 4
  • 15
0

You can use MakeContentAppearAt(Transform, Quaternion) if you want to show your content on the tracked image without actually moving the virtual content in the scene. Just pass tracked image position and local rotation to the function.

ibrahim
  • 168
  • 2
  • 11