Guys, I would really use some advice/help here. First, I'm using farseer, not box2d, but since it's not complicated question, it applies to both engines the same(from my understanding).
Anyways, I have 2 bodies, same size, same position; one body is dynamic, the other kinematic and I try to glue them together. DistanceJoint works perfectly, while WeldJoint makes the dynamic body fall(gravity applying here).
So this works ok:
JointFactory.CreateDistanceJoint(PhysicsWorld, _body, body2, _body.WorldCenter, body2.WorldCenter);
And this doesn't:
JointFactory.CreateWeldJoint(PhysicsWorld, _body, body2, Vector2.Zero, Vector2.Zero);
Also tried like that, same result:
JointFactory.CreateWeldJoint(PhysicsWorld, _body, body2, _body.WorldCenter, body2.WorldCenter);
Can someone give me some clue here, what is going on?
cheers
Anyways, I have 2 bodies, same size, same position; one body is dynamic, the other kinematic and I try to glue them together. DistanceJoint works perfectly, while WeldJoint makes the dynamic body fall(gravity applying here).
So this works ok:
JointFactory.CreateDistanceJoint(PhysicsWorld, _body, body2, _body.WorldCenter, body2.WorldCenter);
And this doesn't:
JointFactory.CreateWeldJoint(PhysicsWorld, _body, body2, Vector2.Zero, Vector2.Zero);
Also tried like that, same result:
JointFactory.CreateWeldJoint(PhysicsWorld, _body, body2, _body.WorldCenter, body2.WorldCenter);
Can someone give me some clue here, what is going on?
cheers