body.setFixedPosition

I would like to create a dynamic body with fixed position, but not fixed rotation.

The reasons: I need to catch collisions into the body, but have it not move. I also need to spin the body, and have damping of the spinning.

So, I don't want the body to move position, I want it to rotate, but I want there to be spinning damping.

unfortunately body.setFixedPosition doesn't exist. body.setFixedRotation does.

My: current solution:

Vector2 vPos = oBody.getPosition(); //grab position
world.step(1 / 60f, 6, 2); //do the physics thing
oBody.setTransform(vPos, oBody.getAngle()); //restore the position.

Anyone have a better solution?
Create a Body
Set it to have BodyType.Static
give it a small or no fixture

Create your body
Set it to have a BodyType.Dynamic
Set it to the same point as the StaticBody

Create a revolutejointdef
instalize it with (static_body, your_body, static_body.getWorldPosition();
create the joint

It will spin like there is no tomarrow
I did it a different way after all. I was not aware of sensors. I made the body a sensor. Spins with damping.

CircleShape circle = new CircleShape();
circle.setRadius(startDiameter/2);

FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = circle;
fixtureDef.density = 0.0f;
fixtureDef.friction = 0.0f;
fixtureDef.restitution = 0.0f;
fixtureDef.isSensor = true;

Fixture fixture = starBody.createFixture(fixtureDef);

circle.dispose();

This doesn't react to gravity or other bodies, but when setting the angular velocity, it follows the physics.

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