Looking For a Contact Constraint

Looking for a contact constraint, like a spring clock mechanism with a wheel with pins on it and as it turns the pins push a cog but then they turn away from the cog and go around.

like in the last 3rd of this vid


http://www.youtube.com/user/MechaniFool#p/u/5/MXPyqmNsUME

SolidworksAssemblies