Skip to content

Commit

Permalink
Merge pull request #17444 from Mugen87/dev29
Browse files Browse the repository at this point in the history
PointerLockControls: Clean up.
  • Loading branch information
Mugen87 authored Sep 7, 2019
2 parents 1536454 + d842a59 commit d98291b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/js/controls/PointerLockControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {

Expand Down
3 changes: 2 additions & 1 deletion examples/jsm/controls/PointerLockControls.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export class PointerLockControls extends EventDispatcher {
constructor(camera: Camera, domElement?: HTMLElement);

domElement: HTMLElement;
object: Camera;

// API

Expand All @@ -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;

Expand Down

0 comments on commit d98291b

Please sign in to comment.