How to get closest point between 2 objects?

Thanks for finding this! It took me a while to reach this point as well. This worked perfectly for me!