three.js - How to disable gyro based rotation on mobile phones -


i want disable camera rotation, while being on mobile.

i though making look-controls="hmdenabled:false" disable moving camera along mobile device, yet didn't work.

i tried find controls should disable, found intel stating, webvr drivers rotate scene @hmd orientation, not directly gyroscopes.

nonetheless, have no idea how lock camera, can moved dragging finger.

thanks in advance

if want own control scheme, you'll need make own controls. can copy , paste code look-controls , customize it: https://github.com/aframevr/aframe/blob/master/src/components/look-controls.js


Comments

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

'hasOwnProperty' in javascript -

Trouble making a JSON string -