Phys2d Composite Objects and FixedJoint

I checked out the demo “rejoint” where fixed joint was used to generate composite bodies out of multiple bodies. The problem, however, is that I can’t simply do the same in my project.

I have three boxes main body and two smaller boxes that could be called wings for example. When I connect them with FixedJoint, rotation works decently, however when I thrust (apply force along one of the cardinal axises of the object) the bodies that I attached with FixedJoint stall behind. I am not even talking about minor stuttering, but they get completely detached.

I saw a similiar post and yes, I am trying to achieve the same thing. I want to have the bodies “superglued” together with joints.

The code that I am using is very simple, almost straight from Rejoint demo from Phys2d sources.

Also, what is the relaxation property supposed to do? What kind of values is it supposed to take?

Phys2D doesn’t support any sort of composite body. You might want to take a look at JBox2D which I believe does.

Kev