Revolution joint - visual bug in testbed?

Hello.
I'd like to signal a possible bug.
I'm setting up a chain of rectangles linked by revolution joints.
If I use

Code:
shapePoli.SetAsBox(fEdgeLength, fThickness, b2Vec2(x, y), fAngle + pi / 2.0f);


I get this:
Image

Instead, if I use

Code:
shapePoli.SetAsBox(fEdgeLength, fThickness);
bodyDefPoli.position.Set(x, y);
bodyDefPoli.angle = fAngle + pi / 2.0f;


I get what I expect:

Image

Am I doing something wrong or is it really a bug?

Regards
The joint lines go to the body origin, not the center of mass. The coordinates you use for the polygons puts all the body origins down below.

I use the body origin because that is how the anchor points are defined. This might help you understand things if you set the local anchor points manually.

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