- Home /
How to make a bullet go through certain colliders?
I have a character rig set up with a capsule collider and then a bunch of hitbxes that are set as triggers. The bullet deletes itself when it hits the capsule and doesn't get to the hitboxes inside. Could I put the capsule on a certain layer and the bullet will pass through it and get to the hitboxes?
ok so what you want to do exactly is have the bullet pass the capsule collider to hit the collider used for your hit boxes... interesting but I have no idea how to do this as of yet. but I may get back to this if I learn something about it before this is answered. as I will run into this problem as well in one of the two projects I am working on.
Answer by Hoeloe · Sep 07, 2013 at 04:48 PM
You can use Physics.IgnoreCollision
to specify that two specific colliders should not test for collision, or Physics.IgnoreLayerCollision
to do the same for two layers.
Your answer
Follow this Question
Related Questions
first person controller falls down through the floor of my imported house 1 Answer
Ragdool walking through objects 1 Answer
Collision normal angles. 1 Answer
Multiple colliders on a single character? 1 Answer
Special Collider? 1 Answer