How to detect edge so the character can fall and not stand in "air"?

Thank you! I have been trying to find a good solution to this and I am surprised that the threshold variable is not featured more in the documentation or in people’s videos. I’ve seen people do very advanced capsule resizing and other hacks, and there was a variable for it all along…