Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Use device tracking origin for roomscale setup

Discussion in 'AR/VR (XR) Discussion' started by fahruz, Aug 20, 2020.

  1. fahruz

    fahruz

    Joined:
    Mar 5, 2020
    Posts:
    57
    In my VR hierarchy, I have the classic CameraRig structure containing the controllers and main camera as children and I would like to specify the location a user should be moved to via a script by setting the position of the CameraRig object. Unfortunately, in roomscale mode there's an offset between the user's head position and the origin of CameraRig, so setting a new position for the latter will result in a shift for the user. This doesn't happen in standing/seated mode, which uses device tracking origin. Is there a way to use DTO for roomscale setups or how can I achieve what I described with floor tracking origin?