Fixing two box2D bodies together securely

后端 未结 1 410
醉话见心
醉话见心 2021-01-24 20:18

I am trying to join two box2d bodies together that are separated over a fixed distance. Both bodies cannot rotate themselves, and the join should have to rotation either. The ga

相关标签:
1条回答
  • 2021-01-24 20:43

    I have also tried the b2WeldJoint which did not work as I assume both bodies have to be overlapping...

    As far as I know, the shapes of the bodies do not necessarily have to overlap. As far as I have understood your setup, the weld joint would be appropriate, since it forbids all relative translation and rotation.

    0 讨论(0)
提交回复
热议问题