Damping effects induced by a mass moving along a pendulum