Skip to content

Jor-ban/threejs-gyroscope-controls

Repository files navigation

How to use

import { GyroscopeControls } from 'threejs-gyroscope-controls';

const orbitControls = new GyroscopeControls(camera, renderer.domElement);

If you want to have ios support, call this code before initializing GyroscopeControls (it must be called by click event)

import { requestPermission } from 'threejs-gyroscope-controls';

window.addEventListener('click', () => {
    requestPermission().catch(() => console.error('Permission denied'))
})

Good luck :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published