How to do sliding from elevation?

**I’m doing sliding now, but i have a problem with sliding downhill and uphill. **How to make the character move faster downhill and slower uphill? I have no ideas how to do it((

I think the height difference, between the face the player is on actually and the face in running direction, will tell you if it is going up or down. You have to shoot some rays.

just multipy the slope normal into your direction in whichever way you are applying movement.

hello, thanks for your advice, but can you tell me a bit more