Variable cobMatrixConst

cobMatrix: Matrix4 = ...

The coordinate system of GDTF is different from three.js.

   three.js (X, Y, Z)                  GDTF (X, Z, -Y)
Y Z
| | Y
| | /
| | /
+---------> X +---------> X
/
/
Z

This is why we need to apply this Matrix4 to the GDTF Matrix4 upon import. It is a so called change-of-basis matrix:

1,   0,   0,   0,
0, 0, 1, 0,
0, - 1, 0, 0,
0, 0, 0, 1

Generated using TypeDoc