Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 6dof constraint issue
PostPosted: Wed Apr 04, 2012 2:49 pm 
Offline

Joined: Wed Apr 04, 2012 2:27 pm
Posts: 1
Hi, i have a problem with 6dof constraints. I have couple of planks and i want to connect them with 6dof that acts like hinge. I want to make a suspension brige. The problem is that constraints start to twist as soon as they hit something. I've made a video of it (bridge is connected only on one side atm):
http://www.youtube.com/watch?v=t1X2rAz_Pek
Code - pos is absolute position of point where i want my constraint.
Code:
btTransform ctWorldTransform;
ctWorldTransform.setIdentity();
ctWorldTransform.setOrigin(pos);
ctWorldTransform.setRotation(btQuaternion(0,0,0,1));
btTransform transformInA = rb1->getCenterOfMassTransform().inverse() * ctWorldTransform;
btTransform transformInB = rb2->getCenterOfMassTransform().inverse() * ctWorldTransform;
new btGeneric6DofConstraint(*rb1,*rb2,transformInA,transformInB,false);

Then i set all limits to zeros except lower limit for one axis - that should make that hinge-like functionality.

Any help is appreciated!


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] 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:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group