The autocomplete entry for fromEulerAnglesYXZ is mislabeled as fromEulerAnglesXYZ.
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:
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)