Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question How do I make my XR Origin Move along with a real life user?

Discussion in 'VR' started by JeroenRoelant, Dec 12, 2022.

  1. JeroenRoelant

    JeroenRoelant

    Joined:
    Nov 10, 2021
    Posts:
    1
    Our game uses the left hand joystick to move it's character, however while testing we noticed that users tend to move a lot in real life.

    While the camera moves along with the player, the XR-origin, that has a collider for the player, does not move in the game and keeps it's original position.

    How do we make the XR origin move along with the player so the positions in-game and irl are synchronised?

    Thanks in advance
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,251
    You can put the game logic and collision on the camera instead of the xr origin. That works for my physical movement games. See XR origin as your play area
     
  3. PatHightreeXVR

    PatHightreeXVR

    Joined:
    Dec 10, 2018
    Posts:
    25
    Check out this tutorial by Justin Barnett, he demonstrates a script solution to the user walking through walls which also supports crouching.
     
    germetic14 likes this.