/asteroid-gliders

Drawing some lines

Primary LanguageC++

Asteroid Gliders

This is my attempt at implementing something like the system mentioned in this tweet.

Dependencies

SFML for rendering and window.

Boost Filesystem for checking for existing files in the image output directory.

Eigen3 for some code that doesn't do anything yet, but will do soon.

Usage

Try the following keys:

  • r to regerate with next seed
  • shiftr to regenerate with previous seed
  • t to plot the trajectories (default)
  • g to plot the gravitational field
  • s to save image to disk
  • q to quit

Building

mkdir build
cd build
cmake ..
cmake --build .

Some results

Image generated by code in this project Image generated by code in this project Image generated by code in this project Image generated by code in this project Image generated by code in this project Image generated by code in this project

This project is obviously not bug-free. Bug