All Projects → s0lly → NBody-Physics

s0lly / NBody-Physics

Licence: other
N-Body Physics Engine with Visualisation

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
HLSL
714 projects
This engine allows the user to input thousands of objects and watch an n-body physics display occur. If objects collide, those objects will "merge".

The number at the top left represents the number of objects remaining in the simulation.

The camera "locks-on" to the largest mass object and follows it around, moving to any larger object as objects merge.

It relies on only a few functions and objects to do all the work, so hopefully the code is quite easy to understand and follow.

The camera can be zoomed in and out using 'A' and 'Z' respectively.

Please let me know how I could improve this!

This was made using the Chili Framework: http://wiki.planetchili.net/index.php... - thanks Chili!

----

By s0lly 2019
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].