How would I make objects perfectly circle another object, and not having it look choppy?
I’m trying not to use code, but I still want it to be a perfect circular motion.
If I try normally animating it, it always ends up poorly made.
I guess this is what you’re asking for:
I currently can’t think of a way to not use scripts for animations. (I believe you have to script)
My way to do so is to have a weld connecting the centre part and the part surrounding it, and use TweenService to repeatedly rotate the centre part while creating a new part at where the part surrounding it is.
To make it not looking choppy, we would have to do some calculations.
We need the angle of each rotation to see how close each surrounding part should be placed.
The equation would be:
(In which, r = radius, n = the angle we’re finding, and L = the length of each surrounding part)
- Calculate the circumference with math.pi*r^2.
- Divide the length of the surrounding part by the circumference.
- Multiply the quotient by 360. (Full angle)
Then use the new angle we got to make a circle!
In my case above, the radius of my circle is 10, and the length of each surrounding part is 2, and therefore the angle calculated is approximately 2.292 (degree).
Hope this helps!
More Information:
Roblox Docs - TweenService