4
votes
2answers
816 views

How to calculate linar velocity of planet orbit?

I try to simulate a solar system with planets (with random mass) placed randomly around a sun with a mass $X \times \text{solar mass}$. The simulation is going well when I use real data ...
0
votes
2answers
171 views

Planet's Moon attrated by sun [closed]

I'm currently writing a code to generate solar system and $N$ number of planets / moons. I use real data to test (earth / sun / moon data). I succeeded in placing the earth and make it orbit around ...