Add WebXR Locomotion (player movement) to tesseract_viewer_python #78
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.
tesseract_viewer_python
has long supported VR headsets using WebXR, however it has not been possible to move the player position except by physically walking around. This PR adds "locomotion" (player movement) using the right controller thumbstick to turn and move forward/backward. It also adds "drag" locomotion, where the player can "drag" the scene around by holding the "B" button on the right controller. This is inspired by the "Gadgeteer" game controller scheme (https://gadgeteergame.com/). The scene will move with the controller when B is held. Hold and release in sweeping motions for large movements. The locomotion was tested using an Oculus Quest 1.WebXR requires HTTPS if not accessed using localhost. The
shapes_viewer_ssl_webxr_headset.py
example shows how to use the newssl_context
parameter to use HTTPS. The user will need to accept the security warning to use the self-signed certificate when connecting to the viewer web server.