Rufus31415 / Simple-WebXR-Unity

⭐ Bringing WebXR to Unity 3D ! B-)
https://rufus31415.github.io/webxr/MRTK-HandInteraction/
MIT License
573 stars 82 forks source link

Camera start position should always be 0 #27

Closed Rufus31415 closed 3 years ago

Rufus31415 commented 3 years ago

On Quest, start position is not zero contrary to other browsers. For MRTK : move playspace to camera.main.transform.position at startup

ThePaperDragon commented 3 years ago

On the Quest browser, 0 is floor level. I would like all browsers to function like this, otherwise it is hard to determine floor level.

Rufus31415 commented 3 years ago

@ThePaperDragon Unfortunately not all browsers are aware of the floor, that's why I added SimpleWebXR.UserHeight which is different from 0 if the browser supports floor space. It was therefore chosen to always start at the local position 0