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 recreation in Unity, it is usually essential to have a digicam that follows the participant’s motion. The SmoothDamp perform can be utilized to create a clean digicam observe impact, but it surely can be computationally costly. When you’re in search of a strategy to create a clean digicam observe impact with out utilizing SmoothDamp, there are just a few completely different approaches you may take.

One strategy is to make use of the LateUpdate perform. LateUpdate is named in any case different Replace features have been referred to as, so it is a good place to replace the digicam’s place. To make use of LateUpdate to create a clean digicam observe impact, you may merely set the digicam’s place to the participant’s place plus an offset. The offset can be utilized to regulate how far the digicam is behind the participant.

Read more