Shaders that take advantage of the properties of Unity GPU-Particle instancing in order to find each other's position.
Ball instances merge towards their shared center the closer they get to one another.

Rope instances each go half way to one another. This causes two rope instances to snap together in the center and be attached. Has some artificial gravity/drag, but it's very basic.
