How to Create a Super Smooth Follow Camera in 2D Unity Without Using Smooth Damp

How To Smooth Follow Camera 2d Unity Without Smooth Damp

How to Create a Super Smooth Follow Camera in 2D Unity Without Using Smooth Damp

When creating a 2D game in Unity, it’s often necessary to have a camera that follows the player’s movement. The SmoothDamp function can be used to create a smooth camera follow effect, but it can also be computationally expensive. If you’re looking for a way to create a smooth camera follow effect without using SmoothDamp, there are a few different approaches you can take.

One approach is to use the LateUpdate function. LateUpdate is called after all other Update functions have been called, so it’s a good place to update the camera’s position. To use LateUpdate to create a smooth camera follow effect, you can simply set the camera’s position to the player’s position plus an offset. The offset can be used to control how far the camera is behind the player.

Read more