# 3 Body problem Solution Visualized (2D, 3D maybe coming later)

**URL:** <https://discourse.processing.org/t/3-body-problem-solution-visualized-2d-3d-maybe-coming-later/23877>\
**Category:** Gallery\
**Created:** [September 15, 2020, 6:53pm UTC](https://discourse.processing.org/t/3-body-problem-solution-visualized-2d-3d-maybe-coming-later/23877 "2020-09-15T18:53:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![B0tOx](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/b0tox/32/10462_2.png) [@B0tOx](https://discourse.processing.org/u/B0tOx)\
**Post date:** [September 15, 2020, 6:53pm UTC](https://discourse.processing.org/t/3-body-problem-solution-visualized-2d-3d-maybe-coming-later/23877/1 "2020-09-15T18:53:42Z")

</div>

> **[B0tOx/3-Body-problem-Solution-Visualized](https://github.com/B0tOx/3-Body-problem-Solution-Visualized)**
>
> Contribute to B0tOx/3-Body-problem-Solution-Visualized development by creating an account on GitHub.

Research Paper:

> **[0011268.pdf](https://arxiv.org/pdf/math/0011268.pdf)**
>
> 252.48 KB

By just playing around with Planetary systems that have more than 2 bodies (they can be utterly Complex and it is almost impossible to find a stable Constellation), you can easily see why such Solutions are so stunning. Being surprisingly simple as merely taking the form an Eight, makes this one stand out a lot for me.

Keeping this one 2D for now, 3D sometime later.

---

<div class="post-metadata">

**Author:** ![ivaylo](https://avatars.discourse-cdn.com/v4/letter/i/5fc32e/32.png) [@ivaylo](https://discourse.processing.org/u/ivaylo)\
**Post date:** [September 15, 2020, 8:17pm UTC](https://discourse.processing.org/t/3-body-problem-solution-visualized-2d-3d-maybe-coming-later/23877/2 "2020-09-15T20:17:34Z")

</div>

Good job, thanks for sharing! How did you get the initial values for positions and velocities if you don’t mind?

---

<div class="post-metadata">

**Author:** ![B0tOx](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/b0tox/32/10462_2.png) [@B0tOx](https://discourse.processing.org/u/B0tOx)\
**Post date:** [September 15, 2020, 8:37pm UTC](https://discourse.processing.org/t/3-body-problem-solution-visualized-2d-3d-maybe-coming-later/23877/3 "2020-09-15T20:37:21Z")

</div>

Whoops forgot to refer to the paper

---

<div class="post-metadata">

**Author:** ![ivaylo](https://avatars.discourse-cdn.com/v4/letter/i/5fc32e/32.png) [@ivaylo](https://discourse.processing.org/u/ivaylo)\
**Post date:** [September 16, 2020, 12:53pm UTC](https://discourse.processing.org/t/3-body-problem-solution-visualized-2d-3d-maybe-coming-later/23877/4 "2020-09-16T12:53:57Z")

</div>

Thanks. The Wikipedia article has had this animation forever, but I haven’t noticed that they also specify the initial conditions and a reference to this same paper. I built an “orbital playground” in Processing some time ago and was trying to guess values which would do something like the figure eight thing.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [September 19, 2020, 6:02pm UTC](https://discourse.processing.org/t/3-body-problem-solution-visualized-2d-3d-maybe-coming-later/23877/5 "2020-09-19T18:02:58Z")

</div>

Thanks so much for shaing this, @B0tOx!

Consider making your git repo a valid sketch by moving the pde files into a correctly named subdirectory. The sketch folder and the entrypoint PDE names must match exactly.

3-Body-problem-Solution-Visualized / Gravity1 / Gravity1.pde  
3-Body-problem-Solution-Visualized / Gravity1 / Planet.pde

---

<div class="post-metadata">

**Author:** ![B0tOx](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/b0tox/32/10462_2.png) [@B0tOx](https://discourse.processing.org/u/B0tOx)\
**Post date:** [September 19, 2020, 10:39pm UTC](https://discourse.processing.org/t/3-body-problem-solution-visualized-2d-3d-maybe-coming-later/23877/6 "2020-09-19T22:39:19Z")

</div>

Thanks for the advice, never have used Github before

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [September 20, 2020, 4:24am UTC](https://discourse.processing.org/t/3-body-problem-solution-visualized-2d-3d-maybe-coming-later/23877/7 "2020-09-20T04:24:08Z")

</div>

> [@\[SOURCE CODE + ARTICLE\] Localized Attraction Repulsion particle system](https://discourse.processing.org/t/source-code-article-localized-attraction-repulsion-particle-system/23003/2):
>
> You should create a release tag so it’s easier to download the whole sketch: label[GitHub.com/bcrespy/LocalizedAttractionRepulsion/releases](http://GitHub.com/bcrespy/LocalizedAttractionRepulsion/releases)

- [Releases · B0tOx/3-Body-problem-Solution-Visualized · GitHub](http://GitHub.com/B0tOx/3-Body-problem-Solution-Visualized/releases)
