This project has moved and is read-only. For the latest updates, please go here.

Realistic looking rope

Topics: Developer Forum
Jan 20, 2011 at 5:06 PM


I've create a RopeJoint beteen a static Fixture and a dynamic one (lets say a ball). I could use a SliderJoint (with max. and min. length) too - it seems to deliver allmost the same results. The length of the rope can vary!

In the Draw Methode I draw a line between the 2 Fixtures hoping to let it look like a rope between them, but it looks like more than a rubber band. :(

Does somebody know a relatively easy way to let the "rope" look more realistic? The rope should hang down if the two Fixtures getting closer and straight if the rope reaches max. lenght...

Jan 20, 2011 at 6:12 PM

Revolute, slider and distance joints can be used as joints for ropes. The rope joint is not designed to be used between links, but rather between start and end points of the rope. The rope joint was made to minimize the stretch the of the rope and enable it to carry huge loads.

Take a look at the Testbed samples. There are at least 3 tests that shows you how to create a rope.

Jan 21, 2011 at 9:04 AM

Thanks many nice examples there!