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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -