Browse Source

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

Mr.doob 11 years ago
parent
commit
458dd67c84
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/math/Quaternion.js

+ 4 - 4
src/math/Quaternion.js

@@ -87,10 +87,10 @@ THREE.Quaternion.prototype = {
 
 
 	copy: function ( quaternion ) {
 	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();
 		this.onChangeCallback();