#Why does part.Rotation treat 180deg as 0deg

17 messages · Page 1 of 1 (latest)

wispy portal
#

I'm attempting to code something that tracks the player's orientation, specifically it's Y, I noticed that as you move from 0 to 180, from either the positive, or negative, it starts to reverse at +- 90 and goes back to 0, why is that, and what is a good alternative to track the degrees fully? Image for reference

rigid lava
#

how you detecting that rotation? CFrame? or the actual rotation property itself?

wispy portal
rigid lava
#

try using CFrame:ToOrientation() maybe?

wispy portal
#

because then I need to change my conversion formula

rigid lava
dark drumBOT
#

studio** You are now Level 3! **studio

wispy portal
#

do you want me to send a screenshot of my full script?

rigid lava
#

well, yeah roblox orenation is weird.
but from what i learned from math class, some rotations are are similar like for example -180 is simialr to 180 so its possible roblox just uses the positive version just to not make it complicated?

rigid lava
wispy portal
dark drumBOT
#

studio** You are now Level 1! **studio

rigid lava
#

what are you even trying to do here?