- Home /
Fishing Rod line extending and retracting
I'm not sure if my last question was posted, since last time i tried this unity basically ignored my existence.
So i'm going to ask one more time in a different way. I understand that a rope is basically a bunch of nodes together. What i want to do is to be able to have an object attached to the end of the rope, and to be able to extend and retract the line gradualy. The way i was trying to do this was:
putting 5 circular objects in the scene with rigidbodies2d and hingejoints.
clicking a "z" so that it instantiates a new object in front of the last object, connected to the last.
However, this way the node at the end doesn't gradually appear, it instead appears right in front of the last node at the time, this makes the gameobject i want attached to the end of the line "teleport" towards past the last node.
Is there a better way for me to do this? I couldn't find any tutorials or help on this.
Basically:If i extend the rope, extended the nodes gradually without pushing the object, let gravity or moving do its thing. If i retract it however it drags the object.
Answer by Cornelis-de-Jager · Jan 31, 2019 at 06:01 AM
Google: unity fishing line tutorial
and three tutorials come up.
I had seen a lot of videos which didn't really show any code or explination, it was just the guys showing off the rope. There was one link which was dead, and i tried looking up grabbiling hooks to apply the same logic, with that said most of them didn't deal with the fact that the line contorts around objects( they were doing something kind of like spiderman 2) if you are talking about this:
https://www.reddit.com/r/Unity3D/comments/1kx1hp/best_way_to_do_fishing_line/
I read it but didn't really understand how to utilize it, could you explain to me the logic behind it if possible?
Your answer
Follow this Question
Related Questions
jungle swing type game ...? 0 Answers
get a rigidbody rope move with my character 1 Answer
No 2d hinge joint lines 1 Answer
Swinging too long HingleJoint 2 Answers