Skip to content

s0lly/NBody-Physics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

N-Body Physics Engine with Visualisation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published