so i made procedural planets and now im trying to make an orbit system my idea is like you can launch planets at a star and if you do it right then they will be in orbit and if the launch is slightly off then they will be launched into the parenting star. the problem is i have 0 clue on how to do this as i cant find anything on it.
I wouldn’t try to do an n-body physics simulation, it takes a lot of work on the integrator to make it stable over time. Take a look at Kepler’s law.