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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Centering the Main Camera after user's physical movement

Discussion in 'VR' started by superDot86, Sep 23, 2021.

  1. superDot86


    Nov 8, 2020

    I'm trying to make a movement to the user (with xrrig component) and it's going well until the user is walking in the physical space. Then there is an offset of the walk and the position I'm trying to teleport to is with the walking offset.

    In my app, there is like "Hot spot" that the user is teleporting there (I'm using transform.position to move the user). If the user is moving in his space, then wants to go to some hotspot, it all goes wrong again.

    Is there a way to reset the Main camera to the center of the xrring even the user walking around in his space? I can't move the main camera in run time (only if I change the Tracking Type to only Rotation but when I change it back to Rotation and Position, it goes back to the wrong position from before).

    Is there another way to move the user to the desire location (without the Teleport from xrrig) even if the user walk's around in his space?