# pendulum with a moving pivot point

I am making a game where you have large number of balls on a plate and the plate can be moved left or right. I want the balls on the plate to swing left and right.

I guess this can be considered as a pendulum with a moving pivot point.

I know; the distance to sphere , distance pivot has moved in time t

can anyone provide some help on how to calculate the position of the sphere?

-
It's not clear to me at all what system you're trying to model. You talk about a sphere--what sphere? Do you mean to each ball (which would be several spheres, not just one)? – Muphrid Feb 2 at 7:44
I just explained what my overall problem is so it is clear what i wanted to do; I just wanted the equation for one point (ball) say distance L from the moving pivot point. If the pivot point moved distance d at time t. I want to know how to find the locations of the ball. – Janaka Feb 2 at 10:25
It is not clear to me neither. But for any constrained problem use Euler-Lagrange equations. en.wikipedia.org/wiki/Euler%E2%80%93Lagrange_equaton Plus do not expect nice equation in time. You probably end up numaricaly integrating some sort of differential equation. – tom Feb 2 at 10:54
using a differential equations not going to work in this my case. Just to clear things up, If you have a pendulum and if the fix point move some distance, what happen to the pendulum? Do I have to use differential equations to find the position of the pendulum? Since this is for a game, I don't necessarily need very accurate calculation. I need to give a impression of a swinging action. Is there a simple mechanism I can use for this? – Janaka Feb 2 at 11:27
it seems clear for you, but after reading the question I have no idea of what system you have in mind (what would be the pivot? or the pendulum, and how an why it moves? ). If you can make an effort to explain it better, we could try to fin a good simple approximation – julian fernandez Feb 19 at 2:55