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.

4

1 に答える 1

2

これを行う必要があります:

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

これは、PointerLockControlsカメラの動きを巧妙に処理するためです。

于 2013-03-04T00:34:46.340 に答える