소스 검색

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 ) {