i have implemented ropes in which i have used Revolute joints to connect dynamic b2bodied , now i successfully created this ropes but my ropes not looking smoothy , i want them smooth just like ribbons . anyone having idea on this !! i found that it could be achieved by openGLES using anti-aliasing but still not getting idea that exactly how to achieve this .. any kind of help would be appreciated .
my Rope is polygon shaped dynamic body , this way b2BodyDef bodyDef; bodyDef.type = b2_dynamicBody; bodyDef.position = currentPos;
b2PolygonShape polygonShape;
polygonShape.SetAsBox(linkWidth,linkHeight);
b2FixtureDef fixtureDef;
fixtureDef.density =20.0;
fixtureDef.shape = &polygonShape;
b2Body* link = world->CreateBody( &bodyDef );
link->CreateFixture( &fixtureDef );
Revolute Joint :
b2RevoluteJointDef revoluteJointDef;
revoluteJointDef.localAnchorA.Set( 0, linkHeight);
revoluteJointDef.localAnchorB.Set( 0, -linkHeight);
revoluteJointDef.bodyA = link;
revoluteJointDef.bodyB = lastLink;
world->CreateJoint( &revoluteJointDef );
please help .
i want my ropes smoother just like right most image
my output looks like this