Skip to content Skip to sidebar Skip to footer

Camera Rotates Pointerlockcontrols

I have used mrdoob's PointerLockControls.js example for this project. Everything works fine until I change the camera.position.set(2, 2, 3 ); to this camera.position.set(1

Solution 1:

You need to do this:

controls.getObject().position.set( 1100, 150, -50 );

This is because of the clever way PointerLockControls handles camera movement.

Post a Comment for "Camera Rotates Pointerlockcontrols"