Detail this asset from Unity Store: Original Link
This is a paid asset, but now you can download Camera Collision Script Free.
Camera Collision Script v1.11
This content is password-protected. Please verify with comment to show the download link. Thanks.
Your satisfaction is my top priority! Please, by all means, do not hesitate to send me an email if you have any questions or comments.
Camera Collision Script
– This script prevents your camera from going through walls and avoids obstacles that block view of your player.
– If you have an object you do not wish for the camera to detect, you may give the object a Tag, or assign the object a Layer. Add the name of that tag or layer to the MaskedTags or MaskedLayers list in the inspector. The object will be ignored.
– Simply drag and drop the FocusPoint prefab from the Prefabs folder onto your player, and center it above your player’s head for instant use.
– The camera may be placed anywhere, including to the sides of your character for a more convenient view.
– If you have additional Camera Controls you wish to use, simply ensure there is a FocusPoint (or central point on your character) assigned to the Camera Collision Script, and that all camera positioning, such as zooming/scrolling, is done to the CamSpot variable of the script, and not the Camera itself.
– Zooming/scrolling of the camera can be toggle on and off.
– In the demo, we used a simple capsule character setup for player movement (movement script included), as well as the MouseLook script from the Standar Assets on both the player and the focus point for turning and angling the camera and player.
We do our best to make our assets as user-friendly as possible! Please, by all means, to not hesitate to send us an email, or leave a review, if you have any questions or comments!
Enjoy gaming! =)