How do I…
I’m trying to get “PlayerInd” to snap to specific angles
What is the expected result
It should be able to face up, down, left, and right.
What is the actual result
It only seems to face down and left
I’m trying to get “PlayerInd” to snap to specific angles
It should be able to face up, down, left, and right.
It only seems to face down and left
The rotate towards action rotates the object from -180 to 180 instead of 0 to 360. You would need to use values like > -45 and <45 and so on.
I’m wondering if rounding to the nearest 90° would work without having to do any comparisons.
Set PlayerInd angle to round(PlayerR.Angle()/90)*90
You’re a life saver!