This MCG finds the gap between 2 objects. This is the minimum distance between verts, not pivot to pivot. Hence, your geometry should have a reasonable amount of verts for accuracy. Thanks to Bob Dyce and Daniel Santana for the Vert to Vert distance compound.