I'm not quite sure why but the engine I'm using is returning odd angles for which direction an entity is facing. It looks like this:
Now, I'd like to turn the entity from its current angle, X, to a given angle, Y but only using the fastest way possible. If it's facing 90 degrees and the target is 100 degrees, it should use the smaller 10 degree turn, not the 350 one.
Does anyone have any C code or pseudo code or even just general tips they can give me to easily achieve this using the above angle system?