Its easy enough to have an object instantly rotate to face specific coordinates. This is really useful for making enemies chase players using proximity. However, in the game I’m working on I want my enemy objects to have a slow rotation speed so they can gradually rotate towards where the players object is rather than instantly facing them.
I’ve put a little thought into it, and if I could get a simple true or false of whether or not the enemy is faster to rotate towards the players position by rotating left than rotating right I could make my game work fine. However I cant work out how to translate the players x and y coordinates in comparison with the enemies x and y coordinates to find whichever direction the enemy needs to rotate to face the player fastest. Any feedback or ideas to solve my problem would be great, cheers.