How can i script a train suspension with vertical wobble etc

Im trying to make a train suspension using raycasting however it’s not going well for me so far and someone else made a suspension that works really well and Im just not sure how to make it.

Other persons suspension: https://twitter.com/BuilderAtWork_/status/940284689377628160
He says he used prismatic constraints and body forces but Im not sure how