RevoluteJointDef definition and correct coordinates

hello, as usually I have a small problem.

I need to create 2 polygons and connect them using RevoluteJoint.

As you can see here http://uloz.to/xZdqCoXu/figure-bmp

the shape (polygons) represents a human foot. Every normal shape in Box2D is defind relatively at Fixation, but Polygon has no
special fixation point. How can I create such shape. How can I define coordinates of connection for revoIute joint? Is this correct ?



{ // POLYGON A, fingers - Left leg

// fingers at foot - body
BDX::BodyDef^ _bodyDef = gcnew BDX::BodyDef();

_bodyDef->type = BDX::BodyType::Dynamic;
_bodyDef->bullet = true;
_bodyDef->position = Vector2(0.0f, 0.0f);

_bodyList[0] = _world->CreateBody( _bodyDef );

// fingers at foot - polygonShape
array<MXF::Vector2,1>^ _shape = gcnew array<MXF::Vector2>(5);
_shape[0] = MXF::Vector2( 0.225f, 0.000f ); // point 0
_shape[1] = MXF::Vector2( 0.285f, 0.000f ); // point 1
_shape[2] = MXF::Vector2( 0.300f, 0.015f ); // point 2
_shape[3] = MXF::Vector2( 0.290f, 0.030f ); // point 3
_shape[4] = MXF::Vector2( 0.225f, 0.040f ); // point 4

BDX::PolygonShape^ _polygonShape_0 = gcnew BDX::PolygonShape();
_polygonShape_0->Set( _shape, 5 );

delete( _shape ); // delete array

_fixtureDef->shape = _polygonShape_0;
_fixtureDef->density = 1.0f;

_bodyList[0]->CreateFixture( _fixtureDef );

// K0, circle on the right
BDX::CircleShape^ _circleShape_0 = gcnew BDX::CircleShape();
_circleShape_0->_p = MXF::Vector2( 0.285f, 0.015f );
_circleShape_0->_radius = 0.015f;

_fixtureDef->shape = _circleShape_0;
_fixtureDef->density = 1.0f;

_bodyList[0]->CreateFixture( _fixtureDef );

// K1, circle on the left
BDX::CircleShape^ _circleShape_1 = gcnew BDX::CircleShape();
_circleShape_1->_p = MXF::Vector2( 0.225f, 0.020f );
_circleShape_1->_radius = 0.020f;

_fixtureDef->shape = _circleShape_1;
_fixtureDef->density = 1.0f;

_bodyList[0]->CreateFixture( _fixtureDef );

}

{
// vola pedis - left leg
BDX::BodyDef^ _bodyDef = gcnew BDX::BodyDef();

_bodyDef->type = BDX::BodyType::Dynamic;
_bodyDef->bullet = true;
_bodyDef->position = Vector2(0.0f, 0.0f);

_bodyList[1] = _world->CreateBody( _bodyDef );

array<MXF::Vector2,1>^ _shape = gcnew array<MXF::Vector2>(6);
_shape[0] = MXF::Vector2( 0.040f, 0.000f ); // 0
_shape[1] = MXF::Vector2( 0.225f, 0.000f ); // 1
_shape[2] = MXF::Vector2( 0.225f, 0.040f ); // 2
_shape[3] = MXF::Vector2( 0.130f, 0.100f ); // 3
_shape[4] = MXF::Vector2( 0.030f, 0.100f ); // 4
_shape[5] = MXF::Vector2( 0.010f, 0.030f ); // 5

BDX::PolygonShape^ _polygonShape_0 = gcnew BDX::PolygonShape();
_polygonShape_0->Set( _shape, 6 );

delete( _shape ); // delete array

_fixtureDef->shape = _polygonShape_0;
_fixtureDef->density = 1.0f;

_bodyList[1]->CreateFixture( _fixtureDef );

// K2, circle on the left
BDX::CircleShape^ _circleShape_0 = gcnew BDX::CircleShape();
_circleShape_0->_p = MXF::Vector2( 0.040f, 0.030f );
_circleShape_0->_radius = 0.030f;

_fixtureDef->shape = _circleShape_0;
_fixtureDef->density = 1.0f;

_bodyList[1]->CreateFixture( _fixtureDef );

}

{// common joint ( fingers + vola pedis ) on left leg

BDX::RevoluteJointDef^ _jointDef = gcnew BDX::RevoluteJointDef();

_jointDef->bodyA = _bodyList[0];
_jointDef->bodyB = _bodyList[1];
_jointDef->collideConnected = false;
_jointDef->localAnchorA = MXF::Vector2( +0.225f, +0.020f );
_jointDef->localAnchorB = MXF::Vector2( +0.225f, +0.020f );
_jointDef->referenceAngle = 0.0f;
_jointDef->enableLimit = true;
_jointDef->lowerAngle = (float)( (-1)*Math::PI*0.5 );
_jointDef->upperAngle = (float)( (+1)*Math::PI*0.5 );
_jointDef->enableMotor = false;

_jointList[0] = dynamic_cast<BDX::RevoluteJoint^>(_world->CreateJoint( _jointDef ));

}


As anyone can see I am using absolute coordinates of Joint. Is it correct ?

_jointDef->localAnchorA = MXF::Vector2( +0.225f, +0.020f );
_jointDef->localAnchorB = MXF::Vector2( +0.225f, +0.020f );

Both PolygonA and PolygonB have identical revolute joint.

So, it is terrible. Is there simething like detailed manual of theese problems ?
The local anchor should be a position relative the position of each body - it's probably not the same for each body. This might help: http://www.iforce2d.net/b2dtut/joints-revolute
Nice reply. However, there is one small problem. All shapes discussed in here:

http://www.iforce2d.net/b2dtut/joints-revolute

are symmetric. Circle is symetric, cquare is symetric - center of mass is equal to geometric center. But what if I have irregular convex polygon. Where is
the center ? Manual ( http://www.iforce2d.net/b2dtut/joints-revolute ) speaks of:

"The local anchor for each body is a point given in local body coordinates to specify what location of the body will be at the center of the rotation...."

It is nice. For example a Box is created automatically using PolygonShape.SetAsBox. Center is set to 0,0.
Shapes have nothing to do with it. You can make a joint between two bodies that don't even have any shapes.
So the fact that the shapes in the example are symmetrical is not important (you can see that the local anchor for one side of the joint is not at the center anyway: revoluteJointDef.localAnchorA.Set(1,1); )

To set the local anchor positions, you need to answer the question: "what is the location of the pivot point in body coordinates?"
If you have absolute coordinates of a point, you can find the body coordinates for it using b2Body::GetLocalPoint(b2Vec2)
In C++ it would be something like this:
Code:
b2Ve2 absolutePoint( 0.225, 0.02 );
revoluteJointDef.localAnchorA = bodyA->GetLocalPoint( absolutePoint );
revoluteJointDef.localAnchorB = bodyB->GetLocalPoint( absolutePoint );

(Keep in mind, this requires the two bodies to be already in the correct position so that the pivot point is overlapping.)
From the text abowe, I get, that all bodies can be moved to P[X=0;Y=0], supposing that all shapes are created in absolute coordinates
to each other.

Is it true ? 🙄
Yes, but that would be a very confusing way to work 🙂
Where is the best place for Body placing ? Center of mass ? Some point of polygon ? or Center of a circle ?
If shape hit a ground or any other shape, thanks to collision solver, shapes never overlap each other - according to the basic setting.
Whatever suits you. But usually, it's easier to understand if the fixture "center" is around the same place as the body. I say "center" in quotes like that because there is no official center, it's whatever suits you.

For a body with a single circle fixture I think most people would consider the center to be the center of the circle, seems reasonable. For bodies with polygon fixtures, or bodies with multiple fixtures, the center of mass seems reasonable too. Just keep in mind that there is no official "center", especially for polygons.
Ok, and

If I run (to start) Box2D physics engine, and all (2 in this case, see http://uloz.to/xZdqCoXu/figure-bmp ) bodies are set to 0;0, at first step of simulation, all bodies are suspiciously moved to random point: for example If volapedis is assumed only, at first step Box2D move it to X=0.000025 m ; Y=0.01441 m, but both bodies were placed to 0;0 in algorith, why there is so small unexpected movement ? 1.441cm is relatively large movement.
Yes both the bodies lie on static rectangle - earth, and both are connected using Joint.

0 - body 0, 1 - body 1:
0 Step: 0 - X: 2,503395E-05, Y: 0,01441387, Angle: 0,001385562
1 Step: 0 - X: 6,850809E-05, Y: 0,0141576, Angle: 0,001162601
0 Step: 1 - X: 0,0001406074, Y: 0,0134253, Angle: 0,005030853
1 Step: 1 - X: 6,132573E-05, Y: 0,01428425, Angle: 0,001212278
0 Step: 2 - X: 0,0001195371, Y: 0,01358638, Angle: 0,004555871
1 Step: 2 - X: 4,389137E-05, Y: 0,01441193, Angle: 0,0008858414
0 Step: 3 - X: 0,0001015365, Y: 0,0137425, Angle: 0,004080441
1 Step: 3 - X: 3,091991E-05, Y: 0,01451598, Angle: 0,0006419996
0 Step: 4 - X: 8,59797E-05, Y: 0,01388969, Angle: 0,0036223
1 Step: 4 - X: 2,130121E-05, Y: 0,01460093, Angle: 0,0004606473
0 Step: 5 - X: 7,262826E-05, Y: 0,01402572, Angle: 0,003192246
1 Step: 5 - X: 1,420081E-05, Y: 0,01467044, Angle: 0,0003263494
0 Step: 6 - X: 6,127357E-05, Y: 0,01414944, Angle: 0,002796551
1 Step: 6 - X: 8,992851E-06, Y: 0,01472741, Angle: 0,0002274393
0 Step: 7 - X: 5,152822E-05, Y: 0,01426071, Angle: 0,002437538
1 Step: 7 - X: 5,207956E-06, Y: 0,01477421, Angle: 0,0001550579
0 Step: 8 - X: 4,324317E-05, Y: 0,0143598, Angle: 0,002115614
1 Step: 8 - X: 2,481043E-06, Y: 0,01481271, Angle: 0,0001024983
0 Step: 9 - X: 3,618002E-05, Y: 0,01444736, Angle: 0,001829622
1 Step: 9 - X: 5,289912E-07, Y: 0,01484444, Angle: 6,468055E-05
0 Step: 10 - X: 3,021955E-05, Y: 0,01452426, Angle: 0,001577363
1 Step: 10 - X: -8,493662E-07, Y: 0,01487064, Angle: 3,777298E-05
0 Step: 11 - X: 2,515316E-05, Y: 0,01459145, Angle: 0,001356197
1 Step: 11 - X: -1,79559E-06, Y: 0,01489231, Angle: 1,894569E-05
0 Step: 12 - X: 2,083182E-05, Y: 0,01464985, Angle: 0,001163453
1 Step: 12 - X: -2,428889E-06, Y: 0,01491024, Angle: 6,06658E-06
0 Step: 13 - X: 1,722574E-05, Y: 0,01470045, Angle: 0,0009960437
1 Step: 13 - X: -2,846122E-06, Y: 0,01492512, Angle: -2,557042E-06
0 Step: 14 - X: 1,41561E-05, Y: 0,01474411, Angle: 0,0008513565
1 Step: 14 - X: -3,099442E-06, Y: 0,01493747, Angle: -8,03069E-06
0 Step: 15 - X: 1,15633E-05, Y: 0,01478174, Angle: 0,000726461
1 Step: 15 - X: -3,241003E-06, Y: 0,01494774, Angle: -1,131264E-05
0 Step: 16 - X: 9,357929E-06, Y: 0,01481406, Angle: 0,000619089
1 Step: 16 - X: -3,308058E-06, Y: 0,01495628, Angle: -1,30206E-05
0 Step: 17 - X: 7,510185E-06, Y: 0,01484177, Angle: 0,000526908
1 Step: 17 - X: -3,315508E-06, Y: 0,0149634, Angle: -1,367921E-05
0 Step: 18 - X: 5,960464E-06, Y: 0,01486546, Angle: 0,0004480682
1 Step: 18 - X: -3,293157E-06, Y: 0,01496934, Angle: -1,361564E-05
0 Step: 19 - X: 4,649162E-06, Y: 0,01488574, Angle: 0,0003805197
1 Step: 19 - X: -3,248453E-06, Y: 0,01497431, Angle: -1,310413E-05
0 Step: 20 - X: 3,516674E-06, Y: 0,01490302, Angle: 0,0003229783
1 Step: 20 - X: -3,181398E-06, Y: 0,01497844, Angle: -1,227753E-05
0 Step: 21 - X: 2,592802E-06, Y: 0,01491772, Angle: 0,0002739869
1 Step: 21 - X: -3,114343E-06, Y: 0,0149819, Angle: -1,13079E-05
0 Step: 22 - X: 1,817942E-06, Y: 0,01493023, Angle: 0,0002322784
1 Step: 22 - X: -3,047287E-06, Y: 0,0149848, Angle: -1,027967E-05
0 Step: 23 - X: 1,132488E-06, Y: 0,01494087, Angle: 0,0001968374
1 Step: 23 - X: -2,980232E-06, Y: 0,01498723, Angle: -9,243523E-06
0 Step: 24 - X: 5,662441E-07, Y: 0,0149499, Angle: 0,0001667572
1 Step: 24 - X: -2,913177E-06, Y: 0,01498927, Angle: -8,216596E-06
0 Step: 25 - X: 1,192093E-07, Y: 0,0149576, Angle: 0,0001410939
1 Step: 25 - X: -2,861023E-06, Y: 0,01499098, Angle: -7,284085E-06
0 Step: 26 - X: -2,682209E-07, Y: 0,01496413, Angle: 0,0001193306
1 Step: 26 - X: -2,808869E-06, Y: 0,01499242, Angle: -6,409921E-06
0 Step: 27 - X: -5,960464E-07, Y: 0,01496965, Angle: 0,0001009233
1 Step: 27 - X: -2,756715E-06, Y: 0,01499362, Angle: -5,599171E-06
0 Step: 28 - X: -9,23872E-07, Y: 0,01497433, Angle: 8,536923E-05
1 Step: 28 - X: -2,712011E-06, Y: 0,01499463, Angle: -4,849756E-06
0 Step: 29 - X: -1,162291E-06, Y: 0,01497829, Angle: 7,215598E-05
1 Step: 29 - X: -2,674758E-06, Y: 0,01499548, Angle: -4,223061E-06
0 Step: 30 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 30 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 31 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 31 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 32 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 32 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 33 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 33 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 34 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 34 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 35 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 35 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 36 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 36 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 37 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 37 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 38 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 38 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 39 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 39 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 40 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 40 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 41 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 41 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 42 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 42 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 43 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 43 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 44 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 44 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 45 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 45 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 46 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 46 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 47 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 47 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 48 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 48 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 49 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 49 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 50 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 50 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 51 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 51 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 52 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 52 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 53 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 53 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 54 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 54 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 55 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 55 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 56 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 56 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 57 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 57 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 58 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 58 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 59 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 59 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 60 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 60 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 61 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 61 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 62 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 62 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 63 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 63 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 64 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 64 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 65 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 65 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 66 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 66 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 67 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 67 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 68 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 68 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 69 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 69 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 70 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 70 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 71 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 71 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 72 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 72 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 73 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 73 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 74 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 74 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 75 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 75 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 76 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 76 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 77 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 77 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 78 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 78 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 79 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 79 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 80 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 80 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 81 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 81 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 82 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 82 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 83 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 83 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 84 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 84 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 85 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 85 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 86 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 86 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 87 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 87 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 88 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 88 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 89 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 89 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 90 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 90 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 91 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 91 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 92 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 92 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 93 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 93 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 94 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 94 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 95 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 95 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 96 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 96 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 97 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 97 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 98 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 98 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
0 Step: 99 - X: -1,341105E-06, Y: 0,01498166, Angle: 6,095412E-05
1 Step: 99 - X: -2,644956E-06, Y: 0,01499619, Angle: -3,672746E-06
Are these bodies connected by a joint? If so, the joint would be affecting them. Are they sitting on a static ground body? That could affect them too.
Is it causing a problem somehow? If you want the bodies to fully come to a stop, you can allow them to 'sleep', which detects when they are almost in a settled state and stops doing calculations for them.

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