Im trying glue object together using the weld joints. My goal is to add specific sensors to a main collision box. This way I can use collision callback to register head collision, foot collisions etc. The problem is I cant seem to get the weldjoints to work. I tried the wiki but the documentation is kind of sparse.
Below is the code how I initialize everything. At the moment the two objects act as if they are not connected. What am I doing wrong? I think I got the anchors right.
I'm not sure, but I think Box2D just skips the sensor fixture when it tries to apply constraints and that makes it a body without fixtures and shapes. Can't you just add the sensor fixture to the main body instead of giving it its own? Bodies can have multiple fixtures attached to them. You also don't have to involve the soft WeldJoint that way.