Get angle between a position and facing direction
I know, I know... there's a many question in the forum with similar title, but I didn't find exactly what I need.
Simple I need to get the angle between a character's facing direction and position of a point in the world. So, it's not "angle between vectors" thing as I have a point which is not facing anywhere. The other part a character which has facing direction of course. For example when the character (2D top-down) facing towards that point, the angle must be 0.. if the character turn perpendicular the angle should be 90 (or-90) and so on...
I would appreciate a simple code too! Thanks!
Comment