- Home /
Can I make a camera have collision?
Hello so in my game I am using the SmoothFollow script for my camera and I have noticed that the camera would travel through walls and objects which would show a lot of the scene and I don't want the player to see parts they haven't been yet. I was wondering if there was a way I could add collision while having similar controls to the SmoothFollow script?
Answer by Mander · Aug 03, 2012 at 07:32 PM
like anyother gameObject. just add the components and u r ready to go.
Answer by ScroodgeM · Aug 04, 2012 at 11:00 AM
one of not bas solutions is implemented in 3rd person shooter demo project from unity team. camera there makes a raycast to backward to detect any geomentry at the back and doesn't move through it. check this demo project for sources.
Your answer
Follow this Question
Related Questions
How to get A Camera Collision? 1 Answer
Why are my bullets acting as being deflected by the camera borders collider? 0 Answers
Camera Moving Problem 1 Answer
Why does the screen start spinning? 2 Answers
Camera Rotation 2 Answers