From 7464746d91f97560fc0975abc497bf745fd7cd36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Poul=20Kjeldager=20S=C3=B8rensen?= Date: Thu, 29 Oct 2015 12:31:11 +0100 Subject: [PATCH] Create three-FirstPersonControls.d.ts --- threejs/three-FirstPersonControls.d.ts | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 threejs/three-FirstPersonControls.d.ts diff --git a/threejs/three-FirstPersonControls.d.ts b/threejs/three-FirstPersonControls.d.ts new file mode 100644 index 000000000..355ce1e69 --- /dev/null +++ b/threejs/three-FirstPersonControls.d.ts @@ -0,0 +1,33 @@ +Source : https://github.com/NTaylorMullen/CycleR/blob/master/CycleR/CycleR.Game.Client/Client/Interfaces/ThreeJS/Cameras/FirstPersonControls.d.ts + +interface IFirstPersonControls { + object: IObject3D; + target: IVector3; + domElement: HTMLCanvasElement; + movementSpeed: number; + lookSpeed: number; + noFly: bool; + lookVertical: bool; + autoForward: bool; + activeLook: bool; + heightSpeed: bool; + heightCoef: number; + heightMin: number; + constrainVertical: bool; + verticalMin: number; + verticalMax: number; + autoSpeedFactor: number; + mouseX: number; + mouseY: number; + lat: number; + lon: number; + phi: number; + theta: number; + moveForward: bool; + moveBackward: bool; + moveLeft: bool; + moveRight: bool; + freeze: bool; + mouseDragOn: bool; + update(delta?: number): void; +}