Moving a ball in a labyrinth

Hi, I’m trying to develop a game like the old labyrinth, where a ball has to move inside a maze avoiding the holes to reach its goal.
All using opengl and c++.
I have a ball with its position(x,y,z) and its velocity (x,y,z),
and I want it to move depending the slope angles of the labyrinth.
How can I develop this?
Thanks.

First, you need a little bit of knowledge in physics. Second, I don’t anyone in here will answer, it is a quite vague question.

How much knowledge do you have about the physics involving your game?
How much knowledge do you have about OpenGL?

With this kind of question, no one will be able to answer you appropriately