I'm trying to get the physics of a retractable object in unity, So I will be able to "launch" an elastic cable (similar to rope physics) out of an object (e.g. A gun), And the cable will gradually/exponentially "roll back" into the object. A good reference would be Batman's grapple gun.
I thought of utilizing it using a spring joint, but I can't really get the exact mechanics I'm trying to achieve.
Thank you in advance.