How to detect the floor ?

I would like to be able to detect the floor in my environment. The floor is an uneven terrain.

The idea is that my actor (person) should be able to walk on that uneven terrain.

Any ideas ???

Maybe you can have a look to the PhysicsWalker in the direct py files.
There is a walker class. You give a specific flag to your floor and walls
and walker is kept away from them. (you cannot go throught walls and you stay above the floor).However this walker need cleanup to be usable in any game.

I’ve used it some months agos with success but i do not know how it performs in real harsh terrain.
(i 've used on arena and building rooms)