Is there a way to restrict particles inside a Mesh. I’m using the old particle system (not shuriken) and i spawn particles inside a cube which is triggered and have a box collider. But I don’t want my particles go outside this cube.
Is there a way to do that ?
You could go through the particles array directly, manually checking for bad x,y,z coords.
Otherwise, I think the only built-in particle collision is to bounce on an Enter, which “hitting” a cube wall would not be. Guess you could build 6 walls for the cube and add a worldCollider (to the emitter.)