I´m using 8 direction for my roguelike prototype, but i´m having an issue when another object follows player´s angle with a lerp.
Im not sure if it´s really 8 direction´s fault but the thing is that when the player reaches 360 degrees (or 0 degrees whne turning left) it automatically sets its angle to 0 (as expected). The problem is that any object lerping to its angle will take the longest route, instead of just skipping one degree to the right. The lerp will go crazy, turning 360 degrees nonstop until all keys are released. This last part is the one that i´m not sure why it happens.
In general i´m not very happy with how 8 dir controls feel, so if there is no better way to solve this than rebuilding the whole movement system without the behavior, no problem. By the way, I know I could use the pin behavior but I prefer smooth lerps for aiming.
Thanks for the help