Hi all, I want to make a FPS and I have added a gun to the First Person Controller of the standard assets. I don't want the gun passes trough the walls, so I have attached a collider to the gun but it does not work.
I have found a similar post but I don't understand how to apply the solution, http://answers.unity3d.com/questions/9168/why-wont-my-box-collider-collide
asked Dec 07 '10 at 09:14 PM
For guns, there is a better way to do it. Add a second camera on top of your main camera that moves around with it.
Now your gun will always be drawn on top of everything else so you don't have to worry about it clipping through the environment.
answered Dec 07 '10 at 09:52 PM