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