configureable joint as a chain?

I’m working on a game where your character is supposed to shoot a chain and use it to swing from platform to platform using physics simulation, so I want to keep Unitys own physics engine working.

But my problem is, when I made a chain by combining hinge-joints, the result was not quite what I wanted, the end of the chain whipped around a lot and so I thought that that would be almost unplayable, so I started experimenting with configurable joint.

Its working quite well, it can do precisely what I want and in a smooth motion too, but I cant make the limits work as I want them.

it seems the “limit” parameter works something like the following:

the closest you can get to the joint is the distance you started of from - limit

the farthest you can get from the joint is the distance you started of from + limit

so what do I do if I want my character to be able to swing all the way to the joint but no further away than the distance it was when he “attached the chain”?

I want to know too, help would be appreciated.

The linear limits (X/Y/Z motion) constrain the distance that the joint’s anchor point can move from the point where it is attached to the other rigidbody. For something like a chain, you would probably set these limits close to zero, although a little movement is sometimes useful to stop the chain behaving crazily when stretched.