- Home /
Question by
carlqwe · Sep 20, 2017 at 12:38 PM ·
particlesdestroyparticlesystem
How to destory any object that collides with a particle in a particle system??
Im trying to destory any gameobject that is colliding with a particle inside the particlesystem. Is this possible?
This ring extends and i want it to destoryu anything it touches. Any idea how?
Comment
Answer by NinjaEntertainment · Sep 22, 2017 at 08:36 PM
add a sphere collider or box collider to that ring and make sure it's TRIGGER.
void OnTriggerEnter(Collider other) {
Destroy(other.gameObject);
}
}