larsXYZ / Gravity-Simulator

This is the source code for my gravity simulation project. DISCLAIMER: Keep in mind it started out as a simple test when I was learning C++ in university. So the code is horribly organized. I am also Norwegian, so some stuff might be in Norwegian. I've tried to make it easier to understand.
https://www.youtube.com/channel/UCslIyA4_1rciR3loFI09pZQ
MIT License
106 stars 12 forks source link

Use Runge-Kutta 4 #7

Open qsantos opened 8 years ago

qsantos commented 8 years ago

Using Runge-Kutta 4 instead of Euler integration might help increasing the accuracy of the simulation while improving performance.

See Gaffer on Games for a good presentation of the principle.

larsXYZ commented 8 years ago

Looking into it.

qsantos commented 8 years ago

Have fun! It might actually require to reorganize quite a lot of code to do it properly, so take your time to grok it ;-) .