
The left side is what the end results should look like, and the right side is what's currently happening im my current build. The right side of the ball may also be on the other side of the incline (pipe), basically meaning that in the game, the ball isn't aligned like the left part of the diagram show above.
Thus, I wanted to add a vector acceleration, so that whenever the ball is off-centered, I can trigger the acceleration, so that the ball moves itself towards the center and align itself.

Problem is, I don't know the ball's acceleration at run-time (the ball could be accelerating outwards, away from the inclines (pipes)), so I would like to ask what vector calculations should I use and how should I use it? Thanks in advance!!