3D Camera Controller Script
A simple script for zooming management between two objects in a 3D scene. It has a base distance to start acting and smoothing effects for polishment. This script only works for Perspective projections.
Just import the CameraControl.cs script as a component to the desired Camera Game Object.
You’ll be prompted with the following options:
Drag and Drop the desired game objects to the fields and run the project. If you want to increase the distance the camera controller is going to start acting, the slider for the Base Distance to Act is your guy.
Feel free to adapt the script according to your project.
The example project was built using Unity 2017.3.
This project is licensed under the MIT License - see the LICENSE.md file for details