import {
XRCONTROLLER,
} from 'https://cdn.jsdelivr.net/npm/@mitchallen/[email protected]/dist/three-xr-controller.modern.js'
See the repo examples folder.
A video of the example code, recorded on an Oculus Quest 2 can be found here:
To see live VR demos using this package, browse to:
- https://vrmitch.com
- https://vrmitch.com/demo/threejs-quest-thumbstick-vr/src/
- Oculus Quest Thumbstick Demo based on the project in the repo examples/demo-controller-vr folder
- The demo is also listed here:
If you browse to this site in your VR headset you can click the Enter VR button.
This package has been tested on:
- Oculus Go - the current demo only works on the Quest
- Oculus Quest 2
Please note that at the time of this writing there are issue with the button mapping of the WebXR Chrome Extension.
The button mappings in this package were confirmed on actual devices.
To publish your version of the package you must first setup an account and project in NPM.
This will boost the version number, push and publish:
git add .
git commit -m "updated code"
npm run pub:patch
As an alternative:
git add .
git commit -m "updated code"
npm version patch -m "Upgrade to %s for reasons"