String between two moving objects?

Thanks guys. I’ll take a look into some rope physics examples. Cheers