Character(npc) spins fast around itself before facing right direction

sometimes it works, but in certain locations, the character spins in the opposite direction( the opposite of the shortest rotation) to the target which looks super weird. not exactly sure why.

i tried disabling the controller yaw rotation too and didnt do much. what am i doing wrong?

thanks in advance.

As you mentioned, the “shortest direction.”

-90 degrees is also +270. Since your process hasn’t accounted for that, it will sometimes spin the long way around.

To make a nice and smooth rotation to the shortest direction use this logic based on event tick

If you need to find the side where the target (left or right) you might use something like that

thanks, do you have any suggestion on how to fix it?

thank you. I tried your first screenshot but didnt work for me. the character doesnt seem to rotate. I am not sure what to do with the branch of your second one.

actually just found this node. the bool Find shortest path seems to solve my issue

Probably because of character movement. In my case, I use custom movement