Help to make a connection of 2 players, as in the game Chained Together, as if they are connected by a chain

Hi everyone, I need your help. I want to understand how to connect 2 players, as in the game Chaind Together, for my project

did u find a way ?

Hi all,

I think the first thing to figure out would be a function that returns how far the players are from each other.

Then I wonder if you could apply an impulse in the direction of the player if the distance from each other gets too high. (This would require calculating the direction vector that faces towards the other player)

The upcoming physics feature could open up some possibilities too.