# Coding a system with sun moon and earth realistically

**URL:** <https://discourse.processing.org/t/coding-a-system-with-sun-moon-and-earth-realistically/38712>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [September 11, 2022, 12:51pm UTC](https://discourse.processing.org/t/coding-a-system-with-sun-moon-and-earth-realistically/38712 "2022-09-11T12:51:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beppo](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@Beppo](https://discourse.processing.org/u/Beppo)\
**Post date:** [September 11, 2022, 12:51pm UTC](https://discourse.processing.org/t/coding-a-system-with-sun-moon-and-earth-realistically/38712/1 "2022-09-11T12:51:48Z")

</div>

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](https://editor.p5js.org/Beppo/sketches/EFmJqAlkL)

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [September 11, 2022, 4:08pm UTC](https://discourse.processing.org/t/coding-a-system-with-sun-moon-and-earth-realistically/38712/2 "2022-09-11T16:08:29Z")

</div>

> [@Beppo](#):
>
> Hi, I am asking my question again because i still couldnt improve:

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](https://discourse.processing.org/t/coding-sun-moon-and-earth-realistically/38008/4) asking for further help.
