A mouse controlled extremely simple script for rotating the camera around and following the player object (or any other object), zoom in and out with the mouse scroll wheel, press a mouse button and move the mouse to rotate the camera around the target. You can also rotate the camera all the time with mouse movements without pressing a button.
Great for moving the camera around a vehicle, independent of the direction the vehicle is traveling. Tanks, cars, boats, spaceships, this camera controller script is perfect for all those cases.
Several options included, such as max rotation angle, zoom distances, and adjustable speeds.
Camera stays focused on and moves with the target object.
To set up, all you do is attach the script to your camera and set the Target parameter to the player gameobject. Done!
By Joe Censored Games
Note that graphical assets shown in images are not included.
Added in v1.1:
* Option added to move the camera all the time with mouse movements, without holding down a mouse button.
Added in v1.2:
* Choice between updating in LateUpdate or Update.
* Optional delegate called after camera position update.
* Additional optional rotation modifiers for use with options menus or multiple instances of script.
* Can disable logging.