I use a raycast system to simulate bullet effects. I just simply Instantiate the particle effect where the raycast hits such as on a wall for example. I realized that the particle effect gets behind the mesh when the surface is uneven such as when in front of an uneven wall.
So how do i fix this issue?
Here is a screen recording of the issue