How to do sliding from elevation?

How to make the character move faster downhill and slower uphill?