- Home /
Duplicate Question has been answered many times, such as http://answers.unity3d.com/questions/41298/fps-gun-clippes-through-walls.html
How do I prevent my 2D Sprite from clipping into my 3D Environment
Hi, I'm working on a first person game and instead of using gun models, I'm using sprites instead. I attached it to my first person camera and everything works fine. However, whenever I turn and face walls, my sprite clips into the wall. Is there any way I can render the sprite over the wall or at least give it collision? I tried adding a Box Collider and Box Collider 2D onto it, but it still clips. Here's an image of it:
Follow this Question
Related Questions
Is it fine to use a separate quad for collision on a sprite? 1 Answer
Can I use clipping with Unity Sprite in NGUI? 0 Answers
Collision detection not working properly with 2D sprites 1 Answer
How can I get two capsule colliders on the same tree prefab? 2 Answers
Polygon Collider 2D Not Precise Enough 0 Answers