running up to the wall and towards it

How can i run up to the wall and towards it i have tried to disable gravity but when it goes up and never land and didn’t know what to do with towards the wall?

I suppose that you have to make a specific controller. When the controller enters a trigger placed near a wall, you have to switch the control mode from horizontal (with normal gravity) to vertical.

When in vertical mode, you can detect the position on the wall where the character is on by using raycasts.

Answers can’t be more specific unless you give more details to your question.