Ok I have a feeling I'd be able to firgure this out myself, but it would prolly take a while since I don't remember much from math
Anyway, so I have a projectile flying at (S,T) with an angle, Z. If Z is zero it faces straight down, 256 degrees, etc.
I have an enemy at, say, (X,Y). How would I check which side of the projectile the enemy is on (right or left), related to the projectile's angle?
should be true if the projectile needs to rotate in the positive direction.tan⁻¹(S-X,T-Y)-Ze0
is optimized but returns the opposite.