How to make an elastic rope just like cut the rope game

This is my code .Can anyone help me?
Help you what? Be more specific.
Well the topic does say "How to make an elastic rope just like cut the rope game" ...
irresistible force wrote:Help you what? Be more specific.


When I pull the rope is long, each rigid body will shake, not in a straight line. Can anyone provide advice, preferably attached some code, Thank you very much.
following is elastic rope of cut the rope game:
You should try adding a distance joint at the ends of the rope so it won't do that shaking segments thing when stretched.
jayther wrote:You should try adding a distance joint at the ends of the rope so it won't do that shaking segments thing when stretched.


Good idea, I will try ,thank you very much
I successfully make an elastic rope with b2DistanceJoint. Reference to the example of box2D the web. Thank you to those friends who give me advice.
speedboy wrote:I successfully make an elastic rope with b2DistanceJoint. Reference to the example of box2D the web. Thank you to those friends who give me advice.


Can you give me link to "example of box2D the web" you mentioned above?

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