brianpeiris / three-firstperson-vr-controls

First-person controls for VR based on three.js
MIT License
33 stars 5 forks source link

THREE.FirstPersonVRControls doesn't work #1

Closed alaprajz closed 6 years ago

alaprajz commented 7 years ago

Hi Brian, your sample doesn't work in oculus VR, just in cardboard like stereograph. Therefore I try get in the space another way and I can just FirstPersonVRControls doesn't work in it. what could be the problem?

controls = new THREE.VRControls( camera ); var fpVrControls = new THREE.FirstPersonVRControls(camera, scene);

            fpVrControls.verticalMovement = true;

...

            function animate(timestamp) {

vrControls.update(); //when I paste this line scene doesn't work
fpVrControls.update(timestamp); //when I paste this line scene doesn't work

                effect.requestAnimationFrame( animate );
                render();

            }
brianpeiris commented 6 years ago

Sorry I couldn't get back to you at the time. I've updated the library with v0.2.0.