Contradictory fromEulerAnglesYXZ Documentation

The documentation for CFrame.fromEulerAnglesYXZ() contradicts itself with the order that the rotations are applied in. The name implies the rotations are applied in the order YXZ, yet the description says the order is ZXY.

If this is intended and something went over my head, it’s confusing.


This has been fixed! Thanks for the catch.

1 Like

Noo! It was correct all along!

Let’s take a look at the correct documentation of a different but related function, fromEulerAnglesXYZ

And another function

And another

You’ll notice that the order in each of these appears backwards, but that is correct! CFrames are matrices, and these transformations are applied from right to left.

That means that this expression:

CFrame.Angles(X, 0, 0) * CFrame.Angles(0, Y, 0) * CFrame.Angles(0, 0, Z)

Is applying the rotations in the order of Z, then Y, and then X.

And so we can be certain that fromEulerAnglesYXZ will apply the rotations in the order of Z, then X, and then Y.

The documentation for this must be changed back to its original state


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.