Question by
dudedude123 · Sep 01, 2015 at 04:03 PM ·
collisionparticleparticle collision
Disabling the particle
I was working on a system to disable a particle. But I have the code mapped like this
public ParticleSystem fire;
void OnParticleCollision(Collider col)
{
if (col.tag == "Water")
{
fire.enableEmission = false;
}
}
How can I use the code to get the water particle to disable the fire particle upon collision?
Comment
Answer by allenallenallen · Sep 15, 2015 at 02:07 AM
You can't. OnParticleCollision doesn't work with Particles colliding with Particles. It has to be Particles colliding to 3D objects.