- Home /
Camera Collision with Wall
Hey guys, so i'm trying to fix a problem where my camera would rotate and go through the wall. I thought i can stop it by just using a sphere collider. I would kind of work, but with enough speed it go right through it. I also wanted it so that when it does collide it would move the camera closer. Any idea how I can achieve this?
What do you use for moving the camera? transform.Translate
or a rigidbody?
transform.Translate
can cause problems as the tranform at a hih speed may just go through the wall
Answer by Subhajit-Nath · Aug 20, 2014 at 11:30 AM
Add a static Rigidbody along with the collider for it to work.
Your answer
Follow this Question
Related Questions
Make a camera loosely follow an object 1 Answer
How to create a camera follow setup. 1 Answer
Change angle of camera: eulerAngle issue 1 Answer