[SOLVED]
I’d like to know if you can make a particle system (fireball) stop when it hits walls. I’ve tried putting it into a prefab together with a cube that has a box collider or adding Rigidbody to everything. Not even the box stopped. I was thinking of using this script for the fireball:
function OnTriggerEnter(other : Collider)
{
Destroy(gameObject);
}
But If I mark “Is trigger” on all of the walls to get the script to work, the player suddenly gains the ability to walk through walls. I have no idea if this script even works or how to get this to work. Please help me!
Thanks in advance,
Redoxe