I'm making a map that will include space fighters that bank realistically with smooth turns. Right clicking a location will make the fighter start turning toward that angle. The trigger for finding whether the turn should be clockwise or counter clockwise works perfectly.
However, this trigger (a chunk from a trigger that picks every fighter and then does actions (it's leak-free, so don't worry)) doesn't work properly. It's supposed to make the fighters move and turn realistically, using variables for the current speed, turning rate, current angle, and the target angle for turning. The trigger almost works perfectly. When the fighter is told to turn to any angle from 0-180 degrees (northern hemisphere), it is completely flawless. When the fighter moves
counter clockwise to the southern hemisphere, everything is just dandy as well. It's when the fighter moves
clockwise to any point in the southern hemisphere when things go wrong. Sometimes the ship will instantly snap to the target angle rather than gradually get there. Other times the ship will go into an infinite circle pattern, turning indefinitely until I tell it to turn to the northern hemisphere.
I've tried a dozen times to resolve this issue, sometimes completely rewriting the code. Unfortunately, the effect has hardly improved. I, for the life of me, can't figure out what is wrong. Thus I post this chunk of my trigger here so that someone more observant can figure out what the hell is up with it: (This trigger is run 50 times each second)
Anyone who can help me gets a full plate of cookies!