Here is a tutorial on how you can make your character
walk up slopes and hills and match angle of the slope

https://youtu.be/YKFTTfcVrsg