immersive-web / webxr-samples

Samples to demonstrate use of the WebXR Device API
https://immersive-web.github.io/webxr-samples/
MIT License
995 stars 479 forks source link

Adding squeezestart / squeeze / squeezeend testing #59

Closed Artyom17 closed 4 years ago

Artyom17 commented 4 years ago

Point at the cube and press on grip: the cube will be grabbed and moved with the controller (keeping the original color). Release the grip: the cube should be back in place and should change the color (indicating that both - squeeze and squeezeend events were fired).

This is going to work in Chrome[ium] after https://chromium-review.googlesource.com/c/chromium/src/+/2051369 lands (at least with Oculus Rift S). Will be supported by Oculus Browser in 8.1.x

Artyom17 commented 4 years ago

Demo: https://youtu.be/TRhni6QJD0g