preventing a circle from rolling down a slope

Previously I leveraged what I assume was a bug in the java port that allowed me to add angular velocities to objects that had a fixed rotation. Now that this no longer works, I need a less hacky solution.

I've tried setting the angular velocity to 0 every time the actor's update code is called, but this only slows it down.

I also need to still allow the circle to move normally, just stop rotating entirely. I know I can't trigger fixed rotation on and off during the life of the object... so what other options are there?
You can make something fixed rotation by setting the rotational inertia to zero in b2MassData. The flag has the same effect.
This prevents inertial spin, but it doesn't prevent it from rolling down a cliff.

If this is indeed inconsistent with the C++ version then perhaps this thread should be moved to the jbox2d forum as a bug report.
You could try to set torque / angular velocity to a value that prevents rotation. I don't know the exact formula but it should be somewhere in the contact handling code.

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