- Home /
This question was
closed Jul 24, 2014 at 07:58 PM by
duck for the following reason:
Duplicate Question: http://answers.unity3d.com/questions/39420/gun-goes-through-wall-in-a-fps.html
Gun not to make it go through the objects
How can I make my gun not to go through walls.Also yes my gun already has a collider
Felipe
Comment
Answer by Dreave · Feb 25, 2012 at 07:33 PM
What Ive done is make the gun small and then make the character controller a bit wider so it covers the gun.
extending the collider is the worst thing you could do. Learn about layers. they are much more usefull
Answer by Durante · Feb 25, 2012 at 05:48 AM
You need to setup a box collider around the gun but just behind the end of the barrel so that your projectiles can exit safely without being stoped by the Collider.