Fixing a wheel so that it ONLY rotates clockwise

Hello all,

I was just wondering if it was possible to fix a wheel so that it cannot rotate anticlockwise? I'm not talking about using a motor to constantly rotate the wheel clockwise (I know how to do this), more that I'd like the wheel (which has prongs like a water wheel) to only rotate clockwise when objects land on its prongs. I'm guessing there's an easy way to do this that I just don't know about haha I had a quick look in the RevoluteJoint docs but nothing jumped out at me other than the enable limits function, but I'm not sure this is what I'm looking for as I wont it to be able to rotate 360 degrees...

Thanks in advance for any help 🙂

Dinkyfish
I think the best way is to read the angular velocity of the object and if < 0 set the angular velocity to 0, doing the same with the angle should work also
Great, I'd never thought of that. I'll try that now and if you don't hear back from me then it's all gone well lol

Thank you!

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