Problem at the Usage of the Revolute Joints

Are greeted dear Box2Dler!
I have a problem with the RevoluteJoints. Besides, I have read the documentation several times, asked in another, German forum (Yes, I am from Germany '^-^) and was expelled from there to here. My basic idea with my C ++ practise in addition was to be provided, admittedly, to create a static body and a dynamic one. The dynamic one then will fix with a RevoluteJoint to the static. However, it does not want to turn anyhow. I use, in addition, still the SFML.
Here my definition of the joint and the updating of the Box2D world:
Code:
   b2RevoluteJointDef RevJointDef;
   RevJointDef.Initialize(MiniRectBody, RectBody, MiniRectBody->GetWorldCenter()); //MiniRectBody is the static one!
   RevJointDef.enableLimit = false;
    RevJointDef.maxMotorTorque = 100000.0f;
    RevJointDef.motorSpeed = 30.0f;
    RevJointDef.enableMotor = true;
   b2RevoluteJoint *RevJoint      = (b2RevoluteJoint*)world->CreateJoint(&RevJointDef);

Code:
      if(sf::Keyboard::IsKeyPressed(sf::Keyboard::Up))
      {
         RevJoint->SetMotorSpeed( 50.f);
         RevJoint->GetBodyB()->SetAwake(true);
      }
      if(sf::Keyboard::IsKeyPressed(sf::Keyboard::Down))
      {
         RevJoint->SetMotorSpeed(-50.f);
         RevJoint->GetBodyB()->SetAwake(true);
      }

      world->Step(1.f/960.f, 6, 2);
      world->ClearForces();

      rec.SetPosition(RectBody->GetPosition().x, RectBody->GetPosition().y);
      rec.SetRotation((3/2*b2_pi)*(RectBody->GetAngle()*b2_pi));



Yours sincerely,
Check

HP: Sorry about possible English. :[
Make sure the dynamic body is not a fixed rotation body, and make sure it has a non-zero density (give the fixture some density before doing CreateFixture).

Just wondering what the last line is for... SetRotation?
The last line is for the calculating/converting the radians in degrees.
It´s easier to use this: Box1Rect.SetRotation(box1Body->GetAngle()*b2_pi/180.f);
The static body is a fixedRotation-one, the dynamic isn´t it.
The dynamic body have a density of 2,34, the static one 6,973. But for the static body I think, the density doesn´t matter. 😁

MfG
Check
If nobody can help me, nevertheless, give me a classic example. Then, nevertheless, with this I can better work than up to the end of the world year who understands the joke that may also laugh (*grins*), to discuss this real grounding knowledge with Box2D, with yours I think, that to continue nervous feed as well as frustration, because of the urge with it to me and you for my part, is saved. Please, do not take up this anyhow wrong, I hope also that my translation help uses here no wrong words. x]

Yours sincerely,
Checkmateing
Your translation software is fine - actually I'm quite enjoying it 😀

The testbed has some standard uses of revolute joints you could check. This may also be useful: http://www.iforce2d.net/b2dtut/joints-revolute
I was looking at your code again and I noticed:
Code:
RevJointDef.Initialize(MiniRectBody, RectBody, MiniRectBody->GetWorldCenter()); //MiniRectBody is the static one!

Is the dynamic body supposed to rotate around the static body's position, or the dynamic body's position? Maybe the last parameter should be RectBody->GetWorldCenter()?
If it still doesn't work out, try making the simplest possible reproduction in the testbed, then it will be easier for other people to try out.

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