Home

Awesome

unity-camera-follow-2d

Script to make 2d camera follow players in an interesting way.

Usage

Add the script FollowCamera2D to your camera then set the appropriate parameters.

The follow function itself uses Vector3.SmoothDamp function. This has some easing effect, thus performing better than the Vector3.Lerp linear function.

You can use the TestScene scene for some test with the camera script.

Other notes

License

MIT © Minh Ha