- Home /
[Particles] Restrict particles inside a Mesh
Hello !
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 ?
Thanks :)
Answer by Owen-Reynolds · Mar 08, 2012 at 10:03 PM
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.)
Your answer
Follow this Question
Related Questions
Primitive Collider slower then mesh collider 0 Answers
Box/mesh collider 0 Answers
Internal collisions 1 Answer
Box Collider Vs Simple Plane Mesh Collider 1 Answer
A question about collisions. 1 Answer