diff --git a/threejs/three-FirstPersonControls.d.ts b/threejs/three-FirstPersonControls.d.ts index 355ce1e69..b5c1f7e1e 100644 --- a/threejs/three-FirstPersonControls.d.ts +++ b/threejs/three-FirstPersonControls.d.ts @@ -1,19 +1,22 @@ -Source : https://github.com/NTaylorMullen/CycleR/blob/master/CycleR/CycleR.Game.Client/Client/Interfaces/ThreeJS/Cameras/FirstPersonControls.d.ts +//Source : https://github.com/NTaylorMullen/CycleR/blob/master/CycleR/CycleR.Game.Client/Client/Interfaces/ThreeJS/Cameras/FirstPersonControls.d.ts +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// interface IFirstPersonControls { - object: IObject3D; - target: IVector3; + object: Object3D; + target: Vector3; domElement: HTMLCanvasElement; movementSpeed: number; lookSpeed: number; - noFly: bool; - lookVertical: bool; - autoForward: bool; - activeLook: bool; - heightSpeed: bool; - heightCoef: number; - heightMin: number; - constrainVertical: bool; + noFly: boolean; + lookVertical: boolean; + autoForward: boolean; + activeLook: boolean; + heightSpeed: boolean; + heightCoef: boolean; + heightMin: boolean; + constrainVertical: boolean; verticalMin: number; verticalMax: number; autoSpeedFactor: number; @@ -23,11 +26,11 @@ interface IFirstPersonControls { lon: number; phi: number; theta: number; - moveForward: bool; - moveBackward: bool; - moveLeft: bool; - moveRight: bool; - freeze: bool; - mouseDragOn: bool; + moveForward: boolean; + moveBackward: boolean; + moveLeft: boolean; + moveRight: boolean; + freeze: boolean; + mouseDragOn: boolean; update(delta?: number): void; }