How do you make bones or vertex groups not collide with each other?

Ok, let’s just say I have one mesh that contains two separate spheres, each controlled by individual bones. How do I make it so that when the bones animate and move around, they stop or bounce if the mesh of one sphere would touch another?

Bump…