I’m trying to get a CFrame’s orientation WITHOUT using ToOrientation() or ToEulerAnglesXYZ() due to them only returning an approximate number.
Preferably I’d like a method that gives me exact radians.
I’m trying to get a CFrame’s orientation WITHOUT using ToOrientation() or ToEulerAnglesXYZ() due to them only returning an approximate number.
Preferably I’d like a method that gives me exact radians.
ToOrientation may be approximate, but its so close you really wouldn’t notice a difference. If you were setting the CFrame directly you could store the orientation you are using when the cframe is set… otherwise use ToOrientation / ToEulerAngles
It’s actually really easy and people don’t really think of this, but you can literally do CFrame - CFrame.Position.
This works because cframe is composed of position and orientation, so eliminating the position from the equation will only leave the orientation.
Hope this helped.
OP is trying to get the individual angles, not a CFrame. What you detail you can get by saying CFrame.Rotation