Hi, I am trying to figure out how I would be able to generate parts in such a way that they form in the shape of a galaxy. Something like this.
You could make the appearance of the galaxy (the spiral and the center) by yourself and then get the area you are going to place them, randomize it and then do various Instance.new()
Extra thing is that you can check if their position already has a part
Check out this and the open-source code here
Essentially, you need to generate a point cloud in the form of shapes with some random noise to generate a fairly believable looking galaxy. As discussed in the aforementioned article, the easiest of which would be to generate points within a spherical shape with random noise.
2 Likes
Would it be possible to do it in a spiral too?
Yeah just use the Fibonacci sequence
1 Like