2D Character should drag circles behind him as if they were collected by a string


As the title says, I want my 2D Character to drag circles(which he collects before) behind him. I know this has to be done with joints somehow, but the circles should be dangling around the x axis. The character should basically drag a “tail” of circles behind him.

Does anyone know the best way to do this in 2D? The circles behind the character can actually be 3D Spheres.

Thank you for reading this and I appreciate any help.

Never done anything like this, but I suggest looking at HingeJoint2D. See if you can dynamically add/remove joints and attach your spheres to each one.