From 0833727d96fee0ed50c772189b2bda1dff4deaf0 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 22 Jun 2015 10:09:52 +0200 Subject: [PATCH] Changed coeffs and did stuff --- js/PointerCamera.js | 6 ++++-- sql/backup.pgsql | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/js/PointerCamera.js b/js/PointerCamera.js index 68b0c00..908bc6c 100644 --- a/js/PointerCamera.js +++ b/js/PointerCamera.js @@ -68,6 +68,8 @@ var PointerCamera = function() { this.collisions = true; + this.shouldLogCameraAngles = true; + this.resetElements = resetBobombElements(); } PointerCamera.prototype = Object.create(THREE.PerspectiveCamera.prototype); @@ -179,9 +181,9 @@ PointerCamera.prototype.normalMotion = function(time) { var self = this; setTimeout(function() { self.shouldLogCameraAngles = true; - }, 500); + }, 100); - var event = new BD.KeyboardEvent(); + var event = new BD.Event.KeyboardEvent(); event.camera = this; } diff --git a/sql/backup.pgsql b/sql/backup.pgsql index 02d2e9b..11ac907 100644 --- a/sql/backup.pgsql +++ b/sql/backup.pgsql @@ -8,6 +8,7 @@ DROP TABLE IF EXISTS previousnextclicked CASCADE; DROP TABLE IF EXISTS hovered CASCADE; DROP TABLE IF EXISTS scene CASCADE; DROP TABLE IF EXISTS experiment CASCADE; +DROP TABLE IF EXISTS fpscounter CASCADE; DROP TYPE IF EXISTS VECTOR3 CASCADE; DROP TYPE IF EXISTS CAMERA CASCADE;