- Home /
Hanging Onto A Rope
I've created a rope using a series of hinge joints, and I need the player to be able to jump onto the rope, swing from it, and release it and go. The way I've done this is when the player collides with the rope, a hinge joint is added to it, and the hinge joint's connectedBody becomes the hinge joint in the rope that the player hit. When the player hits "d" the hinge joint component on the player is destroyed and the player releases. The problem is that the player doesn't always let go when you hit "d". I thought the problem was that as soon as the player let go of the rope, it would automatically attach to another hinge joint on the rope, so I fixed that by changing the tags on the variable. Now it works more often, but sometimes it still doesn't let go, even though its not holding onto anything. The other problem is that sometimes the player isn't exactly anchored to the rope. The player sometimes moves off the rope, but is still attached, so it seems as if its swinging in mid-air. Any reasons for this? Thanks in advance.
I tried making the anchor on the player's hinge joint the position of the attached body but then that just made the player completely free to move.
Your answer
Follow this Question
Related Questions
Climbing up solution 0 Answers
Using hinge joints for rope 1 Answer
2 Hinges on the same object, like a swing. 0 Answers
How to climb a rope? 1 Answer
Are there plans for a future unity3d release that will install on Linux? 3 Answers