I do a linepick straight down from my character, and check the distance of the pick. If it's pretty close to the ground, i turn gravity off to a certain degree, and all's well.
In your case, you could check the collision normals, but i find linepick does a great job.
In your case, you could check the collision normals, but i find linepick does a great job.