Hi @splash27,
I think I had a similar issue with player camera falling off of a building. I found some suggestion about using a ray that points to -Y, and then check the distance with the first picked mesh (or you can set the length of the ray when you define it). I used and it works perfectly.
Hope this helps.
Abdullah.