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
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