Calculating height for a ball moving down a hill

Hi there. I’m working on a minigolf game for a class project and one thing I want to do is make my ball roll up and down sloped hills. The hills are simple rectangles and I have normal vectors for each one. The easy way seems to be taking the normal and making a perpendicular axis to it and setting the ball along that axis. I’m not quite sure how to go about that though.

Any ideas?

I’m guessing i can take the angle of the normal translate my ball to the origin, roatate and translate back?

Does your objective is simulate the ball position or do you wanna simulate a real ball behavior?

For the first case, all you need is basic physics (URM). For the second case, you need to implement friction that generates torque which will be applied on the ball.