瀏覽代碼

Fixed cannon.js breakage...
object.quaternion.copy( body.quaternion );

Mr.doob 11 年之前
父節點
當前提交
458dd67c84
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/math/Quaternion.js

+ 4 - 4
src/math/Quaternion.js

@@ -87,10 +87,10 @@ THREE.Quaternion.prototype = {
 
 	copy: function ( quaternion ) {
 
-		this._x = quaternion._x;
-		this._y = quaternion._y;
-		this._z = quaternion._z;
-		this._w = quaternion._w;
+		this._x = quaternion.x;
+		this._y = quaternion.y;
+		this._z = quaternion.z;
+		this._w = quaternion.w;
 
 		this.onChangeCallback();