threejs-gyroscope-controls
v0.5.0
Published
Three.js Gyroscope Controls for those who want to use three.js in AR/VR/XR projects
Downloads
3
Maintainers
Readme
import { GyroscopeControls } from 'threejs-gyroscope-controls';
const orbitControls = new GyroscopeControls(camera, renderer.domElement);
import { requestPermission } from 'threejs-gyroscope-controls';
window.addEventListener('click', () => {
requestPermission().catch(() => console.error('Permission denied'))
})