three.js r91
I changed the PointerLockControls example a little on line 173:
camera.position.set(100, 0, 0);
controls = new THREE.PointerLockControls( camera );
controls.getObject().position.set(100, 0, 0);
scene.add( controls.getObject() );
When I move the mouse to look around, you can see the rotation of the camera is incorrect-it is not rotating around itself but somewhere else.
You can see I have added controls.getObject().position.set(100, 0, 0);
, attempting to solve the problem like this and this. But it doesn't work.
See this codepen post for a complete example.
What should I do to make the camera rotate around itself normally when moving the mouse?