In my latest game I’ve used a camera system that allows for very smooth, yet stable movements. I call it stable because it never loses the player no matter how fast he moves. It is probably a pretty common system, but I’ll write about it anyway, as it might help.
The camera uses an absolute point and a relative vector. The point is in the center of the entity the camera follows, and the vector represents direction (and distance) in which the entity is looking.
The image above shows the point at the player’s head, and the vector (of required length) that represents the look at. The circle represents the viewing distance. Camera is then simply set as:
Each frame I set the look at to be at the natural direction (always forward from current orientation). When the player is on the ladder, I set the direction to go up or down (see image below), so it naturally follows player’s head and eyes.
Now the smoothness trick is in how the look at is updated. In my current system I have additional vector called look_at_smoothed, which is every frame calculated like this: