Box2D Forums

It is currently Tue Jul 22, 2014 12:20 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Mar 18, 2009 4:06 am 
Offline

Joined: Tue Nov 18, 2008 3:37 am
Posts: 37
Hi All,

I read a couple of post about this but still I am not sure what is the best combination of joint to get some kind of elestic but with some kind of control over the rotation.

So far I've tried two types of "ropes" with attached a body at the very bottom.

One rope is made with several b2RevoluteJoints:
- this is is great because I can play with the lowerAngle and upperAngle and change the rope behavior.
- at the same time it is not elastic and I can't stretch the rope at all if I drag the attached body with the mouse.

The other "rope" is more an elastic and is made with several small bodies connected by b2DistanceJoints.
- this one looks very very nice because of the elastic feeling
- but I don't have much control over the rotation of each joint


Two questions:
1- Ideally I would like to be able to have an elastic rope (as my b2DistanceJoints one) but also control somehow the rotation that every joint so that it looks more or less rigid. Any suggestion?

2 -considering two point connected by a distance joint (or any joint that let me play with two body as an elastic). Point "A" is attached to the ground (static body), and point "B" is attached on a dynamic body. How can I control the max rotation of the dynamic body relative to point B ?


Hope it makes sense.

Thanks a lot,
Riccardo


Top
 Profile  
 
PostPosted: Thu Mar 19, 2009 4:56 am 
Offline

Joined: Tue Nov 18, 2008 3:37 am
Posts: 37
Alright, I managed to get a bit more control over the rotation combining revolute joints and distance joints.

Still I am not sure where the elastic effect comes from since the distance joint I guess should guarantee a fix distance. Also it has no motor then I am wondering why does it stretches and how can I control it?


Top
 Profile  
 
PostPosted: Sun Jan 15, 2012 11:45 am 
Offline

Joined: Sun Jan 15, 2012 11:44 am
Posts: 1
You ever found an answer to this? I'm wondering about the same.

Thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group