Browse Source

update transform calculations to match FBX SDK (tidy)

Lewy Blue 6 years ago
parent
commit
a4f097b041
1 changed files with 0 additions and 8 deletions
  1. 0 8
      examples/js/loaders/FBXLoader.js

+ 0 - 8
examples/js/loaders/FBXLoader.js

@@ -1244,13 +1244,6 @@ THREE.FBXLoader = ( function () {
 
 
 			var transformData = {};
 			var transformData = {};
 
 
-			// 0 = RrSs, 1 = RSrs, 2 = Rrs
-			// RrSs: Scaling of parent is applied in the child world after the local child rotation
-			// RrSs:= GlobalRM(x) * (GlobalSHM(x) * GlobalSM(x)) = GlobalRM(P(x)) * LocalRM(x) * [GlobalSHM(P(x)) * GlobalSM(P(x))] * LocalSM(x)
-			// RSrs: Scaling of parent is applied in the parent world
-			// RSrs:= GlobalRM(x) * (GlobalSHM(x) * GlobalSM(x)) = GlobalRM(P(x)) * [GlobalSHM(P(x)) * GlobalSM(P(x))] * LocalRM(x) * LocalSM(x)
-			// Rrs: Scaling of parent does not affect the scaling of children
-			// Rrs:= GlobalRM(x) * (GlobalSHM(x) * GlobalSM(x)) = GlobalRM(P(x)) * LocalRM(x) * LocalSM(x)
 			if ( 'InheritType' in modelNode ) transformData.inheritType = parseInt( modelNode.InheritType.value );
 			if ( 'InheritType' in modelNode ) transformData.inheritType = parseInt( modelNode.InheritType.value );
 
 
 			// rotation order
 			// rotation order
@@ -3917,7 +3910,6 @@ THREE.FBXLoader = ( function () {
 
 
 	}
 	}
 
 
-	var tempMat = new THREE.Matrix4();
 	var tempEuler = new THREE.Euler();
 	var tempEuler = new THREE.Euler();
 	var tempVec = new THREE.Vector3();
 	var tempVec = new THREE.Vector3();