0

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);
Roger Travis
  • 8,402
  • 18
  • 67
  • 94

1 Answers1

1

It's unsupported afaik.

Jens
  • 16,853
  • 4
  • 55
  • 52
  • I haven't tried the alternative, libgdx, but I think that it wraps the c library impl. of [rope joint](http://libgdx.googlecode.com/svn/trunk/gdx/src/com/badlogic/gdx/physics/box2d/joints/RopeJoint.java) with JINI in their box2d version. – Jens May 07 '12 at 18:51
  • Seems that [jbox2d version 2.2.1.1](https://code.google.com/p/jbox2d/source/browse/?r=639#svn%2Ftrunk%2Fjbox2d-library%2Fsrc%2Fmain%2Fjava%2Forg%2Fjbox2d%2Fdynamics%2Fjoints) includes RopeJoint, but it seems slightly incomplete. – maackle May 16 '13 at 09:53