- Home /
Collision Detection between certain objects
I'm having a problem where I shoot the bullet and the bullet can collide and bounce of the walls. But when the player jumps foward while shooting, the bullet will bounce of him and send the player flying across the map. How do I make it so there is no collision detection between the bullet and the player.
Comment
Best Answer
Answer by Alec-Slayden · Mar 27, 2011 at 04:33 AM
Unity has recently implemented Layer Based Collisions Which may be an easy way to solve this problem.
Placing the bullets and the Player in unique layers will allow you to disable their collisions with each other.
Best Answer
Answer by tool55 · Mar 27, 2011 at 05:29 AM
There's also this:
http://unity3d.com/support/documentation/ScriptReference/Physics.IgnoreCollision.html