How to create a distance joint constraint?

I recommend reading this thread: