changed one line.
parent
12ca785b42
commit
a0a9d6e45d
|
@ -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);
|
||||
|
||||
};
|
Loading…
Reference in New Issue