Make camera collide



The aya_camera script seems to have a problem cause it should make the camera collide with terain and move camera in case of collide but it wont do that it will phase through objects.
assistant does some math relative to it thats why i posted it as well
The help i request is
help me fix the camera


The following posts could help you to achieve the camera collision:

The following free camera system on the asset store could also help:



I would glady appreciate if anyone decided to help me ._.