bullet going up and out of bounds

How do i stop a bullet object from going up and out of bounds? here is a picture.

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.