forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
three-FirstPersonControls.d.ts
41 lines (40 loc) · 1.33 KB
/
three-FirstPersonControls.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Type definitions for three.js
// Project: http://mrdoob.github.com/three.js/
// Definitions by: Poul Kjeldager Sørensen <https://github.com/s093294>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
//Source : https://github.com/NTaylorMullen/CycleR/blob/master/CycleR/CycleR.Game.Client/Client/Interfaces/ThreeJS/Cameras/FirstPersonControls.d.ts
/// <reference path="./three.d.ts" />
declare namespace THREE {
class FirstPersonControls {
constructor(object: Camera, domElement?: HTMLElement);
object: THREE.Object3D;
target: THREE.Vector3;
domElement: HTMLCanvasElement;
movementSpeed: number;
lookSpeed: number;
noFly: boolean;
lookVertical: boolean;
autoForward: boolean;
activeLook: boolean;
heightSpeed: boolean;
heightCoef: boolean;
heightMin: boolean;
constrainVertical: boolean;
verticalMin: number;
verticalMax: number;
autoSpeedFactor: number;
mouseX: number;
mouseY: number;
lat: number;
lon: number;
phi: number;
theta: number;
moveForward: boolean;
moveBackward: boolean;
moveLeft: boolean;
moveRight: boolean;
freeze: boolean;
mouseDragOn: boolean;
update(delta?: number): void;
}
}