From a0a9d6e45df2e938c42f84328097aa7a8036e422 Mon Sep 17 00:00:00 2001 From: polygonboutique Date: Fri, 4 Nov 2016 15:02:53 +0100 Subject: [PATCH] changed one line. --- src/game-lib-component-camera.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/game-lib-component-camera.js b/src/game-lib-component-camera.js index 6d52332..a5d2bb3 100644 --- a/src/game-lib-component-camera.js +++ b/src/game-lib-component-camera.js @@ -17,15 +17,6 @@ GameLib.D3.ComponentCamera.prototype.onLateUpdate = function( deltaTime, parentEntity ) { - - var quat = new THREE.Quaternion( - parentEntity.quaternion.x, - parentEntity.quaternion.y, - parentEntity.quaternion.z, - parentEntity.quaternion.w - ); - - this.threeCamera.quaternion.copy(quat); + this.threeCamera.quaternion.copy(parentEntity.quaternion); this.threeCamera.position.copy(parentEntity.position); - }; \ No newline at end of file