swing actor from other actor using accelerometer

I need to a swing actor from another actor using accelerometer,
i have a actor that needs to swing from another actor but using the accelerometer.. like a kid on a swing using the the other actor as an anchor.. suggestions help?
i have a actor that needs to swing from another actor but using the accelerometer.. like a kid on a swing using the the other actor as an anchor.. suggestions help?