ソースを参照

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;
 	
 		rotation.setFromRotationMatrix(matrix);
+		
+		return [translation, rotation, scale];
 	},
 
 	extractPosition: function ( m ) {