Rope questions and trouble

Hi there,

First post here as I'm kind of getting into Box2D. I'm new to it, in short.

I do have some tricky problems though, maybe someone can advice.

I have to make a rope that translate on an X axis, here is what I get for now:

http://www.soundstep.com/temp/b2d/rope/normal/

For my Box2D skills..., that's kind of "not too bad". I tried the prismatic joint for the translation but I had some weird behavior so I gave up.

So, I used a series of rectangle joined with a revolute joint.

http://www.soundstep.com/temp/b2d/rope/ss1.png

1. Is that a good method?

I wanted to enable the limit on the revolute joint def of the segment to use the lower and upper angle, but it started to behave in a bad way. Probably because the segments are pushing to each other.

Here is what it does (bring the ball closer to the pivot to see it):

http://www.soundstep.com/temp/b2d/rope/limit/

So sometimes it is bending and even moving on its own, without touching it I can get this:

http://www.soundstep.com/temp/b2d/rope/ss2.png

2. what can I do to solve the problem, any advice?

3. Also, I had to set a density on the rope segment so it behave like a rope, is that a good method?

4. The rope can balance a too long time from left to right after I release the nouse. I tried so many things to try to have some kind of... "more friction, more gravity, not-sure-what" after the release of the mouse, but nothing really "natural". What would you do to achieve that?

5. When I pull on the ball to the ball to the bottom, the joint are extending, probably the force of the mouse joint, what can I do have a joint length that will never change whatever I do?

Sorry, a lot of questions, but I'm not sure in what direction I should go to solve the problems and get a more natural behavior. I'm not even this method is a good one.

Any help would be greatly appreciated! Here is the code:
http://www.soundstep.com/temp/b2d/rope/MainRope.as

Thanks

Romu
Hi. Just wondering if you know there was a 'rope joint' added recently: viewtopic.php?f=3&t=5679&p=26455

My guess is that this has probably not made it to the flash port yet, but it's something you could keep in mind.
yes I saw that but not in the flash version yet unfortunately :/

Is the "a" of the C version: "2.1a", means "alpha"?

I also saw the rope joint in the Alchemy port but I didn't try this port.

Romu
Not a lot of answers :/

Is what I'm asking clear at least? 🙂

Romu
yes, it is clear you need to try the new rope joint 😀
I would love to but it is not released yet in the flash version, is it?

R
Mayo added it in the SVN for WCK 😀

Code:
https://github.com/jesses/wck

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