This code applies smooth physical movements to the camera that track the target object.You can use this code on Unity cameras.
To use this Unity C# script, apply it to the camera you are using.
Target : The target object that the camera should follow.
Offset : A 3D vector that shows the distance of the camera to the target object.
Smoothness : A floating-point number that shows the smoothness ratio of the camera movement.