This turns the my entity to the camera:

Code:
vec_diff(temp.x, camera.x, my.x);
vec_to_angle(my.pan, temp.x);