Hi :)
I think that need a "pin behavior" or "physics behavior" between 2 object.
There is a couple physics and pin example between 2 or more object which related each other
such as "Physics: Distance joint" in Editor > Intermediate Examples
I hope you can find something you need there :)
maybe :
2 ball object, pinned on the both side of an invisible bar object
make the bar object rotate