I'm programming a game and I want to create polygons that will act as the boundaries for this top-down game. I want to have circular boundaries like a hexagon, pentagon etc. which I can create as long as I have the locations (x,y) of each of the points in the shape/polygon.
I'd like to write some functions that can generate these locations given the number of sides (N) and the radius (r) of the shape. Almost exactly like how this website does it, except I just need to generate the point locations.
I don't know how to find this math-wise. Would it be aliasing the values of a circle to have N sides? I'm not too sure. Thank you :)