Browse Source

matrix compose / decompose method

timk 14 years ago
parent
commit
4ec5992f0e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core/Matrix4.js

+ 2 - 0
src/core/Matrix4.js

@@ -717,6 +717,8 @@ THREE.Matrix4.prototype = {
 		matrix.n33 /= scale.z;
 		matrix.n33 /= scale.z;
 	
 	
 		rotation.setFromRotationMatrix(matrix);
 		rotation.setFromRotationMatrix(matrix);
+		
+		return [translation, rotation, scale];
 	},
 	},
 
 
 	extractPosition: function ( m ) {
 	extractPosition: function ( m ) {