Parcourir la source

matrix compose / decompose method

timk il y a 14 ans
Parent
commit
4ec5992f0e
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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 ) {