Quote:
but after a while it doesnt work anymore...

You do not explain what's not working anymore and what the problem looks like. (except for angles)

A wild guess: Replace
Code:
if(my.pan < temp_turn.pan)
  		{
  			my.pan += (abs(my.pan-temp_turn.pan) / 10);
		}
		else
		{
			my.pan -= (abs(my.pan-temp_turn.pan) / 10);
		}
		
		if(my.tilt < temp_turn.tilt)
  		{
  			my.tilt += (abs(my.tilt-temp_turn.tilt) / 10);
		}
		else
		{
			my.tilt -= (abs(my.tilt-temp_turn.tilt) / 10);
		}


with
Code:
my.pan += ang(temp_turn.pan-my.pan)*0.1*time_step;
my.tilt += ang(temp_turn.tilt-my.tilt)*0.1*time_step;




"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends