Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Let the user control elevation (y-level altitude, to raise or lower camera view) with the right controller y-axis (currently unused).
Because the navigation is missing this control, in order to adjust elevation viewpoint in a scene, the user must stand on a chair or get a ladder in the real world, which can cause injury when wearing a VR headset. (This is a joke, no one would try that. It is necessary to use a different viewer app.)
Description
Allowing the viewer to control the elevation is standard in all VR/XR applications, except for first-person games where mobility is restricted for gameplay rules. But in the Playcanvas engine WebXR viewer navigation system, when viewing a scene in VR or AR, the user is locked into a single elevation. In AR, if the scene's data floor doesn't align with the real-world floor, the scene is permanently broken and unusable with this viewer.
Fix
The fix requires one line to adjust the elevation.
I implemented in my local dev version, tested it, and found it working flawlessly on Desktop (SteamVR) and Mobile (Quest3).
I appreciate you taking the time to read this pull request. If you would like me to make any changes, please let me know, or feel free to change as desired.
Thank you for all the hard work and time you have invested in this great viewer for the open-source community.
Checklist