I am trying to have a variable that tracks the degrees of rotations that an enemy does.
The more it spins, the more the variable goes up.
I have a variable that records the world rotation on the previous frame, and subtract that from the rotations of the current frame, but the rotations are between 180 and -180, so I can’t get a simple variable to go up.
Do you guys know any math to figure it out?
Thanks.


