A simple particle physics, in which you set a fixed amount of particles, and see how the core attracts them! The planet formation may vary by the CF and the Gravity Centrifugal force - makes the particles rotate (most notable in more than 20 or 25 centrifugal force). This can shape the formation with precise timing between gravity. Gravity - makes the particles fall faster or slower to the core
Idea from Pezzza's Work (https://www.youtube.com/@PezzzasWork), and the collisions from Abraham Yusran (https://www.youtube.com/@AbramYusran).