- Home /
Ignoring collisions with clones
So I have this FPS game, and my character fires. I made the bullet so that when it collides with something, it destroys itself. So here's the problem: my bullets are instantiated continuosly, and since that happens, they collide with each other, and end up destroying themselves. So, I want to know how to ignore collisions between these clones. Every clone that is created is named "Bullet(Clone)". Thanks!
Answer by syclamoth · Nov 06, 2011 at 12:08 PM
Simple- put all the bullets on a 'Bullet' layer, and then stop the bullet layer from colliding with itself! It shouldn't be a problem unless shooting other people's bullets out of the air is a big deal for you (in which case you can make those 'enemy bullets' instead).
Thanks man! I know it is a stupid question, but I'm new to Unity and scripting.
Your answer
Follow this Question
Related Questions
Destroy On Collision 4 Answers
Destroy All of One One object on collision 1 Answer
Pacman eating (destroying) pellets on collision! 0 Answers
Collision with a coin 0 Answers