Something that looks like “real” swinging is much harder to code. Because the “rope” is approximated as a sequence of linked springs, I found it too difficult to get natural swinging motion AND have something anywhere near stable.
I could play around with the numbers and improve things I’m sure, but it takes more time than I can spare to get it “right”. Heck I don’t even have a decent screen shot or web page 
(And I’ve looked for the info with Google… but didn’t find anything that spoke to my level. It’s been over ten years since I was doing any sort of advanced math in university.)
I recognize it all too well… 