camera.pan += ang(target_pan-camera.pan)*time_step;

Since I discovered this method I use it in every code to smooth positions and angles. If the camera turns to fast, use the following code:

camera.pan += clamp(ang(target_pan-camera.pan),-15,15)*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