pendulum mechanic