Coding a system with sun moon and earth realistically

Hi, I am asking my question again because i still couldnt improve:
Hello, for a scool project I have to code the in the reality existing system containing sun, moon and earth as realistically as possible. In my opinion the three bodies should move witch my current code as they do in reality. I put the real values into the equation of motion. What did I do wrong? I would really appreciate any tips or help. Thank you!
Here is the link of my current code: p5.js Web Editor

1 Like

Please do not start a new discussion if it is simply s continuation of an existing discussion. You should make a new post on the existing discussion asking for further help.