bullet going up and out of bounds

I think it’s srtongly depends from your needs and situation. For example you can place invisible collision plane above maze, though I not sure that it’s best solution.