hitTest ground with mountain

Can you help me to make a character walk on a ground with mountain. Because

the herowill stop falling on the ground but at the height of the mountain…

sorry for my english :stuck_out_tongue: