Good day to all!
I would like to know how I can make the rope elastic?
I am using the verlet rope class, Here is the code fragment:
jd.localAnchorA = b2Vec2(0,0);
jd.localAnchorB = b2Vec2(0,0);
jd.maxLength= (b~~>GetPosition~~ a~~>GetPosition).Length;
b2RopeJoint* bodyAbodyBJoint = world~~>CreateJoint(&jd); //create joint
CCSpriteBatchNode* batch = dynamic_cast (getChildByTag(KTagRopeBatchNode));
VRope* verlet = new VRope(bodyAbodyBJoint, batch);
Any help is appreciated!