Metaballs

A type of object that joins itself to other objects with a connecting surface. When one metaball object moves within a certain distance of another, a connecting surface is formed between the two. Metaballs are ideal for simulating liquids and thick, viscous substances such as mud, soft foods, or molten metal.

You can create metaballs with the BlobMesh compound object.