Stoping contact

How exactly do I stop two parts from hittng each other when i animate an assembly. I am trying to stop a rotating arm from hitting the body. It works sort of like a farris wheel.SolidworksAssemblies