Matrix4.compose wrong order?

Description of the problem

The documentation for Matrix4.compose states:

“Sets this matrix to the transformation composed of position, quaternion and scale. Internally this calls makeRotationFromQuaternion( quaternion ) followed by scale( scale ), then finally setPosition( position ).”

My understanding was always that you should scale before doing the rotation otherwise you can end up with unusual scaling (skewing).

So it should be (IMHO): scale, rotation, translation

Three.js version
  • Dev
  • r115
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

1 possible answer(s) on “Matrix4.compose wrong order?