Death Stranding Keep Balance System

Does anyone knows how to make the balance system from Death Stranding? Or have any ideas? Like, when you’re walking on mud, water. Or even mountains. It would really help me.