- Home /
Question by
erda123 · Aug 17, 2013 at 07:01 PM ·
cameracollisionthird-personthird-person-camera
3rd person camera through wall
how do i stop this?
Comment
Answer by ZorNiFieD · Aug 17, 2013 at 07:13 PM
You need a rather complicated solution to do so. The basics are this, the camera should avoid objects on certain layers. You are better off buying the "Master Camera" asset from unity store by thought vandel. It accomplishes this out of the box.
if
Answer by scipiothegreat · Aug 17, 2013 at 07:28 PM
The question isn't very clear. Is the problem that when you face away from a wall the camera clips through it? If so, you can fix this with a ray cast from the player to the camera and moving the camera to where the ray hits.
yes, that's it i was searching for answer and found a few solutions with adding collision to camera and raycast but none of them worked