you can't avoid particles to pass 2 walls, the only method would be to use sprites + collisions detection OR u detec if the vector is into a solid black (omg, don't ask me for the name of that function :S)