Contact rotation on circle without friction

Hi,

I'm trying to get a rolling circle on the ground without friction but still get the rotation, so it shows that it's rolling properly. For the desired effect I need the circle without friction and it works good, however, I still want the rotation that naturally comes if a friction was set.

Anyone who has an idea how to go about this? I've been thinking in the lines of having a 2nd (invisible) circle with friction that I can maybe sample rotation from to the real circle but I haven't found a good implementation for this either :/

Any help is appreciated!
Use friction, but make the b2MassData.I small compared to the mass. That will give you the effect that the object will spin with the ground, but the friction will not slow down the object very much from its linear movement.
pTymN wrote:
Use friction, but make the b2MassData.I small compared to the mass. That will give you the effect that the object will spin with the ground, but the friction will not slow down the object very much from its linear movement.

Thanks for the fast answer.

I tried what you suggested and it seems to work great so far, will give it some more testing and tweaking. I did set the 'MassData.I' to 0.001 for the time being. Thank you!

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