浏览代码

matrix compose / decompose method

timk 14 年之前
父节点
当前提交
4ec5992f0e
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 ) {