Weld Joint - Issue or Unmatched Expectations?

I'm having an issue with WeldJoint, and am not sure if it's an issue with the Joint or I'm misinterpreting Box2D's (limited) explanation of what a Weld Joint is. It seems that a WeldJoint would take two bodies and couple them as a "group", so any input to one would affect the other.

In my game, as the Dynamic Body comes in contact with the Kinematic Body, a Weld Joint is created on the fly. My expectation is that the Dynamic Body would then stay at approximately the same "local" position to the Kinematic Body and follow the rotational arc of the Kinematic Body. Instead, my Dynamic Body appears to stay in the same World position, appearing to "fight" against the Kinematic Body to keep it's previous position.

I've made an image which probably explains better. Note the difference in motion through space illustrated by the red line.

Image

Thanks for looking! Any help would be immensely appreciated!
I found my issue....

WeldJoints do not work for bodies that have fixedRotation = true. Apparently they also do not work if any of the bodies in the joint have 0 density.

If this kind of information is known, can it be documented?
epochofentropy wrote:
I found my issue....

WeldJoints do not work for bodies that have fixedRotation = true. Apparently they also do not work if any of the bodies in the joint have 0 density.

If this kind of information is known, can it be documented?


Yeah a better documentation would be great!

I had the same problem just now, did you find a good alternative for the weld joint for bodies with fixedRotation = true?
I am making a game that is strictly orthogonal and I wouldn't want to make everything turn just because i want to use a weldjoint.
Sushiy wrote:
I had the same problem just now, did you find a good alternative for the weld joint for bodies with fixedRotation = true?
I am making a game that is strictly orthogonal and I wouldn't want to make everything turn just because i want to use a weldjoint.


I ended up using a Friction Joint set with high friction, and on the Kinematic Bodies it ended up having similar behavior to what I was hoping for.

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