This sounds really easy, because with just numbers it’s really simple, but with angles, 359 degrees is 1 less than 0, and correlating that those are close is not easy. @JR01 is the man i think could do this
4 Likes
nvm i figured it out
if your curious:
((Math.abs(a-b)+180+360)%360)-180, where a is facing rotation and b is target
this sets it to -180 to 180 degrees so i can test
5 Likes