repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 0e26ecb481037a6c3793fe7bae29b2485dad23ba:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 0e26ecb481037a6c3793fe7bae29b2485dad23ba
Author: James Baicoianu 
Date:   Thu Sep 29 02:54:41 2016 -0700

    Remove unnecessary negation in basis matrix computation

diff --git a/scripts/janusbase.js b/scripts/janusbase.js
index d758cf280d9f07baeab08b8bef78fbd9a5b59040..
index ..1b41ec4b0a1ca0e347e47f04301502d2619c9e58 100644
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -177,10 +177,20 @@ elation.require(['engine.things.generic', 'utils.template'], function() {
     this.updateVectors = function(updateOrientation) {
       if (updateOrientation) {
         //var quat = this.room.getOrientation(this.properties.xdir.toArray().join(' '), this.properties.ydir.toArray().join(' '), this.properties.zdir.toArray().join(' '));
-        this.xdir.normalize();
-        this.ydir.normalize();
-        this.zdir.normalize();
-        var mat4 = new THREE.Matrix4().makeBasis(this.xdir, this.ydir, this.properties.zdir.clone().negate());
+        //this.xdir.normalize();
+        //this.ydir.normalize();
+        //this.zdir.normalize();
+        var mat4 = new THREE.Matrix4();
+        mat4.makeBasis(this.xdir, this.ydir, this.properties.zdir);
+/*
+        mat4.set(
+          this.xdir.x, this.xdir.y, this.xdir.z, 0,
+          this.ydir.x, this.ydir.y, this.ydir.z, 0,
+          this.zdir.x, this.zdir.y, this.zdir.z, 0,
+          0, 0, 0, 1
+        );
+*/
+
         var quat = new THREE.Quaternion();
         var pos = new THREE.Vector3();
         var scale = new THREE.Vector3();

-----END OF PAGE-----