What algorithm would help in procedurally generating 2D asteroids in Swift?

So I have done work in the past in procedurally generating 3D asteroids using perlin noise applied to a 6x subdivided cube in Blender, but right now my mind is set on generating asteroids in 2D. So my goal is to first generate the rock and then randomly distribute craters across the surface, ideally so the craters do not intersect. Does anyone have any idea how 2D asteroids could be procedurally generated? Google hasn't been very friendly for 2D asteroids.

Terms of Service

Privacy Policy

Cookie Policy