I have 2d game where my camera follows the player. Simplified, it copies the player position as its own.
Now I have some other object in the game, that I want to camera to follow. This is easy enough by not setting the camera's position with the player's, but with the position of the other object.
The problem is that this camera movement is instant. I'd like to have a more smooth transition (e.g. panning over the level to the given object).
How can I achieve this?