fromEulerAnglesYXZ autocomplete is borked

The autocomplete entry for fromEulerAnglesYXZ is mislabeled as fromEulerAnglesXYZ.

1ee5e2ae1d137f79bc62a8068420556d5b209756.png

b1626e04c2e4adda187e3f423d0bf28e7e2a0806.png

2 Likes

This is a thing…? Why did I not know about it.

I didn’t either until ten minutes ago

1 Like

Oops, that should be YXZ for the new Orientation property (Live now!)

1 Like

Doesn’t the wiki say this is very imprecise?

I don’t see any mention of it on the wiki

You’re thinking of CFrame:toEulerAnglesXYZ() (not from), which is inaccurate, yes.

CFrame.fromEulerAnglesXYZ() is deprecated in favor of CFrame.Angles() iirc

Edit:
c0383ec61e85b29541bdc7bc812d7a7198ce17f8.png

why is this not documented? why does this exist?

Probably exists because yaw-pitch-roll is more human-friendly than pitch-yaw-roll.

so now you can replace this

CFrame.Angles(0, yaw, 0)*CFrame.Angles(pitch, 0, roll)

with this

CFrame.fromEulerAnglesYXZ(pitch, yaw, roll)
2 Likes

Looks like we also got CFrame:toEulerAnglesYXZ() and CFrame.fromOrientation (same as fromEulerAnglesYXZ)