Solid Joint

I would like to create a solid joint, to make two objects work as one.

I tryed:
Code:
b2PrismaticJointDef jointDef;
b2Vec2 worldAxis(1.0f, 0.0f);
jointDef.Initialize(body1, body2, body1->GetWorldCenter(), worldAxis);
jointDef.lowerTranslation = 0.0f;
jointDef.upperTranslation = 0.0f;
jointDef.enableLimit = true;


and:
Code:
b2RevoluteJointDef jointDef;
jointDef.Initialize(body1, body2, body1->GetWorldCenter());
jointDef.lowerAngle = 0.0f;
jointDef.upperAngle = 0.0f;
jointDef.enableLimit = true;


Both kind of work, but not perfect. When strong forces are applied they move a bit.


Any advice to avoid this?
Just realized that my problem is the same described here:
viewtopic.php?f=4&t=5268

But there's no soluction on this post, as long I'm not using bullets or continuos simulation.

Any body know the reason for this instability on joints?
You should use b2WeldJoint. Chains of weld joints will not be perfectly rigid (as seen the testbed example). If you need complete rigidity it is better to use multiple shapes in a single body.

Original thread: https://box2d.org/forum/viewtopic.php?t=5324