Skip to content

cristianglezm/NBodySim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBodySim

ci License

N-Body Simulation using a Barnes Hut.

Keys:

  • F -> Fast generation press left mouse button to add bodies.
  • T -> To see the Barnes-Hut regions.
  • B -> To add a body fixed to its position with a mass 100 times current mass.
  • Left Shift -> Increases mass.
  • Left Control -> Decreases mass.
  • Arrow Keys -> Move the camera.
  • + key -> Zoom in.
  • - key -> Zoom out.

video

Building

Requires CMake and one of the following compilers:

GCC 8.1 or newer;
Clang 3.7 or newer [Not Tested];
Visual Studio 2010 or newer [Not Tested];

NBodySim requires the following dependencies:

  • SFML 2.5.1 or newer

Use CMake to build the project and install.

mkdir build && cd build
cmake -DSFML_ROOT=<sfml root> ..
make -j4

About

NBody Simulation with a Barnes-Hut implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published