Question by
Lazy_Sloth · Aug 03, 2020 at 09:02 AM ·
directionanglevectorfacingdirections
Get angle between facing direction and a point
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