immersive-web / webxr-polyfill

Use the WebXR Device API today, providing fallbacks to native WebVR 1.1 and Cardboard
Apache License 2.0
378 stars 84 forks source link

Fixed an issue with offset reference spaces #126

Closed toji closed 4 years ago

toji commented 4 years ago

Turns out we weren't properly passing along the base transform to the new reference space, which would cause it to appear off in cases like local-floor or bounded-floor reference spaces on devices with real floor detection. (Devices that fell back to the emulated height for local-floor did OK.)

FYI: This fix has already been applied to the WebXR samples, so you can validate that it works with any given device by visiting https://immersive-web.github.io/webxr-samples/tests/ref-space-invert.html