- Home /
Particle in collision
Is there a way how to target particle what caused collision in script attached to emitor?
void OnParticleCollision (GameObject obj) {
//gameobject is the emitter
//obj is the object hitted (colided) with particle
//but how to acces that exact particle what caused collision (and destroy it)
}

I thought that setting lifetime loss on collision will destroy that particle but it did not. Maybe I am missing something important in order to do this right, any advice would be helpfull, thanks
I am facing the same problem. I want to avoid certain particle collision and therefor I need to know which particle actually caused the collision :(
Answer by GameVortex · Nov 21, 2013 at 11:43 AM
If your end goal is to have the particles destroyed when hitting something, then you can adjust the Min Kill Speed variable to something larger than the speed the particles will ever have. The variable is right under the Lifetime Loss variable in the particle system.
I have the same problem and your solution doesn't work. :(
Your answer
Follow this Question
Related Questions
Emitting Particles on Collision 0 Answers
Emit Particle when the parent gets collision 2 Answers
How to access particle collision locations 2 Answers
Locking particle axis? 3 Answers
Using Particles with Collision 2 Answers