its writen a lot like if you were going to clamp rotation to 0 and 2PI, but instead of throwing the remainder away you add it to the clamped value to wrap it aroundIf it would be that simple...there are some other things going on (also with the Free Camera Mode where you cannot just substract a few degrees.). Also, the game swaps from 2 * PI to 0 at some points. That's the real problem.add or subtract 90 degrees depending on what direction you wanna turn and if the value goes beyond a complete turn it wraps around (0+((rotation+turnamount)-a full circle) and if it goes under 0 it has to wrap around to a full circle to keep going