Box2D Forums

It is currently Wed May 22, 2013 10:25 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Apr 18, 2012 9:50 am 
Offline

Joined: Mon Jul 28, 2008 9:24 am
Posts: 18
I'm having a lot of trouble getting weld joints working with the latest build.

I have two simple bodies, one's a circle and the other is a box.

Code:
var weldDef:b2WeldJointDef;
var weldJoint:b2WeldJoint;
weldDef = new b2WeldJointDef();
weldDef.collideConnected = false;
anchor = new b2Vec2(x/ratio,y/ratio);
weldDef.Initialize(body1,body2, body1.GetPosition());
weldJoint = world.CreateJoint(weldDef) as b2WeldJoint;         


The weld joint appears in the debug view but it doesn't actually weld the two bodies together - they just fall apart. Works just fine if I replace the weldjoint with a distancejoint (but that's not what I want).


Top
 Profile  
 
PostPosted: Thu Aug 16, 2012 4:18 am 
Offline

Joined: Sat Sep 06, 2008 3:47 am
Posts: 31
Same here.
Is this a bug?


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 5 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