2

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(1100, 150, -50 );

It seems to 'rotate' along the z axis instead of just looking.

sazoo
  • 127
  • 1
  • 2
  • 9

1 Answers1

2

You need to do this:

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

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

WestLangley
  • 102,557
  • 10
  • 276
  • 276