Rope Joint Help!

Hey!

I'm trying to link two objects together with "rope" made from a bunch of box2d rectangles. I've successfully gotten the Box2d rope creation setup, but i'm having trouble linking them together. If anyone is good at this please give me a hand.

I'm struggling with setting the correct anchor points, because my rope is diagonal 🙁 Emanuele Feronato and the TestBed are both dealing with horizontal and vertical ropes so setting the anchor points is easy for them.

So if someone can show me how to set the correct anchor points on a DistanceJoint to get the rope to work, I would REALLY appreciate it 🙂

code here: http://pastebin.com/uf8tmRpP

Here is what I have so far (WASD to move + Click to make rope): http://www.newgrounds.com/dump/item/82e ... 043603389e

🙂
http://dl.dropbox.com/u/8400506/oldBox2d.zip

^ my source (compilable)
Seems that it almost works.. but the distance joint is stretching.. also the last link should be linked with a joint to the ground/static platform. I played for maybe 5 mins with your demo but can't find a way to restrict the lenght of the joint.

Original thread: https://box2d.org/forum/viewtopic.php?t=6427