The angles might be straddling 0 and 360. Try adding
Code:
temp.pan = ang(temp.pan);  // EDIT: I put x instead of pan... shouldn't matter though :P
temp.tilt = ang(temp.tilt);


right after you scale temp. This changes it so the angles are -180 to 180, so he'll turn in the right direction.

Last edited by Futurulus; 01/06/07 03:58.