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 making a 2D sport in Unity, it is usually essential to have a digital camera that follows the participant’s motion. The SmoothDamp operate can be utilized to create a clean digital camera observe impact, but it surely will also be computationally costly. In the event you’re on the lookout for a technique to create a clean digital camera observe impact with out utilizing SmoothDamp, there are a number of totally different approaches you’ll be able to take.

One method is to make use of the LateUpdate operate. LateUpdate known as in any case different Replace features have been referred to as, so it is a good place to replace the digital camera’s place. To make use of LateUpdate to create a clean digital camera observe impact, you’ll be able to merely set the digital camera’s place to the participant’s place plus an offset. The offset can be utilized to manage how far the digital camera is behind the participant.

Read more