I’m building a radial menu in a game engine (Unity). I need to place my menu items in a “carousel”. So, I need to know the size/scale of my items to fit nicely on a circle, forming a circular menu, laying close to each other and covering the whole outer circle. In other words, how many small circles can I put ON a circumference of another, say a unit circle, where center of those smaller circles lays on the circumference. Or, in yet another words, simply put, say given the size of a ball bearing, how many balls fit inside? Whats the math finding the size/radius of those small circles?
Edited:
I actually needed the r and not the n, so the final equation is indeed
and the code looks like this:

