diff --git a/examples/js/controls/PointerLockControls.js b/examples/js/controls/PointerLockControls.js index 38d9e02d6c68ae..6ba64529788d8e 100644 --- a/examples/js/controls/PointerLockControls.js +++ b/examples/js/controls/PointerLockControls.js @@ -22,7 +22,7 @@ THREE.PointerLockControls = function ( camera, domElement ) { var PI_2 = Math.PI / 2; - var vec = new Vector3(); + var vec = new THREE.Vector3(); function onMouseMove( event ) { diff --git a/examples/jsm/controls/PointerLockControls.d.ts b/examples/jsm/controls/PointerLockControls.d.ts index 64b419220f15fc..bf57c1840c518c 100644 --- a/examples/jsm/controls/PointerLockControls.d.ts +++ b/examples/jsm/controls/PointerLockControls.d.ts @@ -8,7 +8,6 @@ export class PointerLockControls extends EventDispatcher { constructor(camera: Camera, domElement?: HTMLElement); domElement: HTMLElement; - object: Camera; // API @@ -19,6 +18,8 @@ export class PointerLockControls extends EventDispatcher { dispose(): void; getObject(): Camera; getDirection(v: Vector3): Vector3; + moveForward(distance: number): void; + moveRight(distance: number): void; lock(): void; unlock(): void;