Skip to content

Commit 9eafb9e

Browse files
committed
add comment and fix euler ordering
1 parent 3ab6e5b commit 9eafb9e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

examples/js/loaders/FBXLoader.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3851,16 +3851,17 @@
38513851

38523852
}
38533853

3854+
// Returns the three.js intrinsic Euler order corresponding to FBX extrinsic Euler order
38543855
// ref: http://help.autodesk.com/view/FBX/2017/ENU/?guid=__cpp_ref_class_fbx_euler_html
38553856
function getEulerOrder( order ) {
38563857

38573858
var enums = [
3858-
'ZYX', // -> XYZ in FBX
3859-
'YXZ',
3860-
'ZXY',
3861-
'YZX',
3862-
'XZY',
3863-
'XYZ',
3859+
'ZYX', // -> XYZ extrinsic
3860+
'YZX', // -> XZY extrinsic
3861+
'XZY', // -> YZX extrinsic
3862+
'ZXY', // -> YXZ extrinsic
3863+
'YXZ', // -> ZXY extrinsic
3864+
'XYZ', // -> ZYX extrinsic
38643865
//'SphericXYZ', // not possible to support
38653866
];
38663867

0 commit comments

Comments
 (0)