How the bullet does not pass through the object? c#
When the player is to shoot the enemy. If the bullets hit the object. Bullet does not pass through the object. Thanks
Answer by Jessespike · May 26, 2016 at 07:20 PM
http://docs.unity3d.com/Manual/LayerBasedCollision.html
Take a look at Layer-Based Collision Detection. You can probably setup which layers collide with other layers or not.
You might have to set the bullet rigid body's collision detection to Continuous as well
Your answer
Follow this Question
Related Questions
Reload only when not firing 1 Answer
Problem with shooting multiple bullet at the same time with an Object Pooler 1 Answer
How to make a bullet delay? 0 Answers
Shoot until i release the button, but with a fire ratio 2 Answers
How can I make my Raycast ignore my player, but have other player's Raycasts be able to hit it? 1 Answer