Accelerometer around ring

HI

i am facing some problems with the accelerometer. i want the ball to revolve around a
circular axis depending on the accelerometer input,but i want the input only around one axis.

i want something like this

i.e suppose if i tilt the iphone towards left a force should be applied on the ball and it should move towards the left and vice versa .i am placing two cylindrical rings which have collider attached to them and i am moving the ball between them.

I’ve just answered this in your other thread. It’s best if you bump a thread rather than starting two threads with the same question. With separate threads, it is possible that someone can waste their time answering a question that has already been answered by someone else.