Carousel movement

Hi,

My designer wants me to implement a carousel into one of the levels in our game. I've attempted it several times but I'm still not happy with any of the implementations I've done. Below are the methods I'm using and why I don't like them. Any recommendations on how I could do this? Perhaps a certain combination of joints?

Option 1 (Current version):

I manually calculate the position of the baskets based on the rotation of the carousel and then set the new positions to the baskets. This works as intended but because I am directly setting the position of the baskets every frame the other objects get stuck on against them and it looks awful.

Options 2:

I tried manually pushing the baskets around in a circle with impulses by calculating what direction they should move each frame to get to the position they are supposed to be in. This meant that the above sticking doesn't occur but over time they would drift out of the circle. Attempting to correct the drift by setting positions brings back the sticking.

Option 3:

Using joints. I attempted something using the revolute joint but couldn't get it to work (we use that joint elsewhere fine). I suspect it's the wrong type of joint to use for this anyway...

Thanks for reading!
You mean something like a ferris wheel? If yes then you need to use a revolute joint for each basket.

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