- Home /
hinge joint 2d rope flies apart
!hello, i've made a rope out of 10 hinge joint segments just like in the unity hinge joint 2d tutorial - except the space is zero gravity and its a big ball weight on one side. when i move the ball weight the rope segments separate slightly - they used to fly apart completely but i added a distance joint 2d to one side so its not nearly as exaggerated and broken. The real problem comes in if the ball and counter weight get stuck on opposite sides of a wall or ledge either causing one of the weights to get ripped through the wall or the rope to fly to pieces.
Is there any way i can make the rope resilient enough that the pieces never fly apart or separate from eachother at all? I've tried adding distance joint 2d components with the smallest possible distance between the joints and that doesn't seem to help. I'll try to post some screenshots of whats going on to make this more clear.
Answer by TSI25 · Jan 24, 2015 at 11:06 PM
I have sort of a hacky fix working, basically at the top and bottom of each link in the rope/chain i defined a new transform which i fed into a series of line renderers - when a gap formed the line renderer filled it in. MOST of the time the gaps are small enough that it doesnt matter but its still a duct tape and bubble gum solution and i would like pointers toward something more solid if possible