Box2D Forums

It is currently Fri May 24, 2013 2:10 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Apr 05, 2012 8:48 am 
Offline

Joined: Thu Apr 05, 2012 8:44 am
Posts: 4
Hello,

I just want to joint an object to a "rope".

But when this object starts to move, he never stops. The inertia continues to rotate the object.

Is there any parameters like the joint friction in order to stop the movement ?

Thanks a lot.


Top
 Profile  
 
PostPosted: Thu Apr 05, 2012 9:26 am 
Offline

Joined: Thu Mar 01, 2012 9:31 am
Posts: 153
Set angularVelocity = 0 and if needed fixedRotation = true


Top
 Profile  
 
PostPosted: Fri Apr 06, 2012 5:49 am 
Offline

Joined: Thu Apr 05, 2012 8:44 am
Posts: 4
Hello,

The object has to rotate.
But when it starts to moves he nerver stops.
Any objects fixed with a rope stops after a while.

Is there any friction parameter on the Joint object ?

Thanks.


Top
 Profile  
 
PostPosted: Fri Apr 06, 2012 5:50 am 
Offline

Joined: Thu Apr 05, 2012 8:44 am
Posts: 4
For example here :

http://www.emanueleferonato.com/2009/01 ... ute-joint/

The rotation never stops.


Top
 Profile  
 
PostPosted: Fri Apr 06, 2012 6:48 am 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1517
Location: Tokyo
You could use the linear/angular damping settings of the body to make it gradually slow down.


Top
 Profile  
 
PostPosted: Fri Apr 06, 2012 8:12 am 
Offline

Joined: Thu Apr 05, 2012 8:44 am
Posts: 4
Ok you mean like this

body.linearDamping *= 0.9;


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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