How to have particle colliding with colliders but with some Exception ?

Hi all, here a quick explanation of what I’m looking to do:

I’m shooting particles from inside a shield, they need to collide with ennemies, but not with my own shield. I can’t used something else than particles for shooting. I also can’t use the technique where I disable a collider to make my particle go through because the shield is shot at the same time. And finally I didn’t find a way of using physic.collisionexception with particles.

If I’m not clear don’t hesitate to ask more details.

1 Answer

1

Not sure of your exact setup, but if you are using a ParticleSystem with ‘World’ as the collision type, then you can set what layers which layers the particles will collide with. Place the shield on a different layer, and exclude it from the collisions.

Perfect. It's an awesome solution, save computing time instead of adding ! Thanks a lot.