Movement of body after applying weld joint
- by ved
I have two rectangular bodies. I've applied Weldjoint successfully on these bodies.
I want to move that joined body by applying linear impulse. After weld joint, these two bodies becomes single body right? How do I apply force/impulse on the joined body?
I am using Box2D with LibGDX.
I've tried this:
polygon1.applyLinearImpulse(new Vector2(-5, 0), polygon1.getWorldCenter(), true);
I thought that if I move polygon1 then polygon2 will also move due to my weld joint
but it is not working properly.
Why don't they move together after being welded?