浏览代码

update transform calculations to match FBX SDK (tidy)

Lewy Blue 6 年之前
父节点
当前提交
a4f097b041
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      examples/js/loaders/FBXLoader.js

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

@@ -1244,13 +1244,6 @@ THREE.FBXLoader = ( function () {
 
 			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 );
 
 			// rotation order
@@ -3917,7 +3910,6 @@ THREE.FBXLoader = ( function () {
 
 	}
 
-	var tempMat = new THREE.Matrix4();
 	var tempEuler = new THREE.Euler();
 	var tempVec = new THREE.Vector3();