Hello guys,
I would like to have two objects working as one. To achieve that, I tried to create a prismatic joint with the same value for lower and upper translation.
It work fine till the moment that strong forces are applied on the objects. One moves just a little bit in relation to the other, but as I said, I would like then working as one.
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;
world->CreateJoint(&jointDef);
Anybody can help me?