the shortes function is
//this running constantly to adjust angles
while(1)
{
my_angle = target_angle * 0.9 + my_angle * 0.1; //0.9 + 0.1 =1 / sum must be 1
wait(1);
}
This is more of a princple, it is not accounting for the framereate
And it will make the "entity" rotate strangely
when the targetangle is more than 180 degrees off,
but its a good start