Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make a circle with a perfect outside?

Asked by
bowanw 16
2 years ago

I've been attempting to make a circle for the past few hours and though I'm sure there are plenty of alternative methods out there such as importing a mesh, using unions or duplicating parts and rotating them by their outside edge, each method has their pros and cons which I won't go into, though yes I'm aware meshes are the better way to go about this, if not for clogging my developer library.

I'm choosing to use individual parts to preserve an early days roblox blocky aesthetic.

The method I've chosen for making said circle/torus is to duplicate the part and rotate it by the outside edge however I'm unable to predict the exact radius of the circle unless I'm using 90 degree angles and that's hardly a circle is it :/.

I know my radius (22 studs from center to outside perimeter of stud) and intended amount of sides (16). Getting the angle of each stud is easy (360/16=22.5), but I'm not sure how to get the length... I know this isn't exactly LUA, but math formula, but I'm hoping I could get some guidance.

Hopefully these two images help explain this a bit better.

Image1 and Image2

Answer this question