AndEngine and RevoluteJoint anchor displacement/movement

If you please could look at this gif:
Image
You may notice how last parts (previous too) of my chain are moving away. It looks like RevoluteJoint's anchor center is moving.

Creating a joint is as simple as it can be:

Code: Select all

    public static RevoluteJoint simpleRevoluteJoint(Body bodyAttachTo, Body bodyAttached, Vector2 center, PhysicsWorld physicsWorld) {
        final RevoluteJointDef revoluteJointDef = new RevoluteJointDef();
        revoluteJointDef.initialize(bodyAttachTo, bodyAttached, center);
        return (RevoluteJoint) physicsWorld.createJoint(revoluteJointDef);
    }


This is pretty big problem for me and don't know why does it occur. Is is related to AndEngine and AndEnginePhysicsBox2DExtension which I'm using? Or an old fixed Box2D issue which wasn't merged with AndEngine? Or what?
how are you calculating your center points?
-I'd definitely suggest drawing a point to indicate where your center point is on each joint each timestep

This may sound strange but the movement looks correct

One very important hing here is when we look at the center link
-At 0 degrees everything looks correct
-As the difference moves towards -180 they start to seperate
-As the difference moves toward 180 they actually start intersecting more (though its a bit hard to see)


Other questions I have
Are you colliding connected? (as it seems like they are when they move back [it should change much, but is important])
What are the fixture sizes? (as it seems like the thin chains are still pretty big)
Independently of this problem, I had to move to LibGDX instead of AndEngine. In LibGDX this problem doesn't exists.

So I think Box2D used to work with AndEngine is outdated.

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