Dynamically add objects around a reel

I’m working on building a 3D slot machine and I’m trying to build out the reels.
I’m trying to figure out how I can add the reel pieces (game objects) around the reel. I’d be adding 28 of them.

I thought I read somewhere there was a method to calculate the angle to get the pieces to lay flat as well as provide the offset from the previous one but I cannot remember where I saw that.

You can use formulas for generating 2D polygons of an arbitrary number of sides (in your case, 28).

You can also create a prefab piece that is parented to an empty gameobject at the center of the reel. Then all you have to do is rotate each instance by 12.857 degrees (360 / 28).

I had posted on SO as well and someone provided a working example.
https://stackoverflow.com/questions/57318883/calculate-positions-to-place-objects-around-a-wheel/57320690#57320690

Honestly, I wouldn’t go on this path if I were building something like this. I would probably just create a long texture with all the images and put it on a cylinder. And then figure out how much I need to turn it in order to see the Nth “picture” in the window. But I like to micro-optimize things, so it does not mean you need to do it this way, just an option. :slight_smile: