Make camera collide

[87620-aya-camera.txt|87620]

[87621-assistant.txt|87621]

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

Hello,

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

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

Regards,

Roberto

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