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 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).
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.