When making a 2D recreation in Unity, it is typically essential to have a digicam that follows the participant’s motion. The SmoothDamp perform can be utilized to create a clean digicam comply with impact, nevertheless it may also be computationally costly. In case you’re in search of a solution to create a clean digicam comply with impact with out utilizing SmoothDamp, there are a number of totally different approaches you may take.
One strategy is to make use of the LateUpdate perform. LateUpdate known as in spite of everything different Replace capabilities 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 comply with impact, you may merely set the digicam’s place to the participant’s place plus an offset. The offset can be utilized to manage how far the digicam is behind the participant.