javaandroidbox2djbox2d

Do we have a RopeJoint in JBox2d?


Just a quick question, seems that RopeJoint is missing from jbox2d... is it really so or did they rename it to something?

Distance joint works fine, but I want to it be flexible, like a rope, not a metal rod. :)

    DistanceJointDef jointDef = new DistanceJointDef();

    jointDef.initialize(body1, body2, new Vec2(0,0) , new Vec2(0,-10) );

    jointDef.collideConnected = true;
    getWorld().createJoint(jointDef);

Solution

  • It's unsupported afaik.