Grapple hook swing

How’s it going, guys. I’m trying to make a grapple hook. I’ve got the grappling and the pulling to the grapple point but I’m having trouble getting the swinging to work. I’ve seen this around the net, but unresolved. Is there a reference to be directed towards, a tutorial, advice, or even a grappling hook kit of some sort that I can buy to learn from? Any and all help is appreciated at this point. haha

To be specific as to what I’m looking for is it to grapple onto a specified point when in range of said point. Then have that be the pivot point of the swinging. It also needs to work from no matter where the player is located once latched on. For example: The player is 10 paces “behind” the grapple point the pivot will still be where the hook latched on. I figured numerous ways to go about this but it always ends up…inadequate.

But I digress, if anyone has anything it is greatly appreciated. In the meanwhile, I’ll keep trying and keep searching. Thanks, community.

Well, I got it to work so that’s pretty cool. I narrowed it all down to one AddTorque line and two HingeJoints. Can’t believe it ended up to such a simple method. Just going to tweak some values and mess with more complicated grapple behaviors and all shall be working quite well. Even though no one replied, I still appreciate the community. haha

Take care, everyone.

Look for some rope physics libraries for Unity, I think there are one or two out there. Never played with them myself but worth a look.

Yeah, I looked and saw some rope physics but I wanted the line of the grapple to be tight. If further down the line, I feel it looks odd by being so…stiff? I’ll look more into ropes. But for now it’s fine. Thank you.