-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.js
51 lines (34 loc) · 1.08 KB
/
variables.js
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
42
43
44
45
46
47
48
49
50
51
const TAU = Math.PI * 2;
const zAxis = new THREE.Vector3(0,0,1); //also used as a placeholder normal
const yAxis = new THREE.Vector3(0,1,0);
const xAxis = new THREE.Vector3(1,0,0);
const zeroVector = new THREE.Vector3();
var ourClock = new THREE.Clock( true ); //.getElapsedTime ()
var frameDelta = 0;
var frameCount = 0;
var logged = 0;
const debugging = 0;
const log = console.log
const updateFunctions = []
const clock = new THREE.Clock()
const scene = new THREE.Scene()
const clickableRectangles = []
const v0 = new THREE.Vector3()
const v1 = new THREE.Vector3()
const v2 = new THREE.Vector3()
const v3 = new THREE.Vector3()
const v4 = new THREE.Vector3()
const v5 = new THREE.Vector3()
let unitSquareGeo = new THREE.PlaneBufferGeometry()
const rectangles = []
const suspects = []
const bgColor = 0x777777
let square = null
const socket = io();
const OVERLAY_Z = 7.
const dashboard = []
const VISIBLE_AREA_HEIGHT = 20.
const dashboardGap = 1.5
const suspectPositionY = VISIBLE_AREA_HEIGHT/2. - (VISIBLE_AREA_HEIGHT - dashboardGap) / 2.
const sounds = {};
const onMouseClickFunctions = []