I'm not looking to completely leech, I've just been thinking hard on this, and wonder how I should go about doing it.
I didn't get PA on my geometry SOL, and I forgot everything I learned.
Sorry if I seem like i'm spoon-feeding.
But the problem is, I have # of sides of a shape, the number of vertices, radius and diameter, and the starting position.
I'm assuming you can presume +- towards a vertex to get the opposite vertex. So If I have a Hexagon, I'd only need to find 3 vertex positions.
Example.
I want to find the Vertices position relative to the center (mouse.Target) I know how far I want the radius to be ((mouse.Target).magnitude) I know that there are 6 sides so that I need to create at least 3 parts independently. I know that I would then replicate those 3 parts towards they're opposing positions (negative) But I do not know how I'd actually find the slope so that I could correctly and precisely position each vertex to create the shape and be equal with respect to magnitude, it's opposite shapes position, and the number of vertex.
If you understood that, could you point me in a direction? Thanks!!!
https://gyazo.com/ed113ba040168c2114c33ac9d8d09b3a I minor visual interpretation