- Home /
ParticleSystem collision checking.
I use ParticleSystem component as my guns bullets. I want to check if particle hit the enemy. OnParticleCollision () doesn't work. I don't use Particle Emitter, World Particle Collider etc. I only use Particle System which has something like "Collision", but it is not work like that. What should I do?
For OnParticleCollision () to work, you have to enable the Collision module and the "Send Collision $$anonymous$$essages" field inside the Collision module. Have you done this?
Answer by allenallenallen · Sep 11, 2015 at 05:35 AM
My video explaining how to set up OnParticleCollision().
Answer by Naveen Kumar · Sep 11, 2015 at 04:51 PM
In Particular System,
1) Select the Collision option and select the "Send Collision Messages" option in editor. OR have to add the "World Particle Collider" component.
2) And Enemy should have a Collider.
3) And Bullet should have a script with method "OnParticleCollision" you can do your action like die.