WebXR bug with floor level

Hi! Wondering if someone here could help me? I’m developing a webXR experience with Unity and I’m facing an issue with floor level. I’m using the depanther’s project from here: GitHub - De-Panther/unity-webxr-export: Develop and export WebXR experiences using Unity WebGL and I’m building more in the same demo scene environment. The player prefab I use is the “XR interaction setup”

Everything works correctly in Unity preview. However, when I test the built game in Quest2’s browser, as soon as I use the locomotion to move, the floor level shifts up 1-2 meters and my head sticks out from the ceiling. The starting position is correct, this only happens once I use thumbsticks to move. Any idea how to fix this?

The scene I’m using, on the left you can see my additions and the location of the player:


Settings of the “XR origin (XR rig)” component:

As mentioned in this video at 10:35

Set tracking origin to floor and correct the pose of the child object. It’s better to watch the entire video (even before 10:38, there are other settings), as it explains all the details I could think of.

1 Like

Thank you! I’ll test this!

It worked! Thank you so much!!

1 Like