A naive universal gravitation simulator inspired by Osmos, a great iOS game, and three body, a famous fiction.
since it aims on demonstration, performance is not prior.
planets in the defined limited universe(more like a box) moving around by the force field of their neighbors.
To see the demo video.
use SPACEBAR
can toggle it pause/running.
- install dependencies
- spdlog
- opengl
- gflags
- rapidjson
- make
the Makefile is currently only support MacOS(for the -framework
compiler options), adjust your own platform if needed.**
- flickering when redraw
- bounce back at border
- use density instead of explicit weight
- glimmering ball
- history tracks
- predict tracks
- bug: edge point between recalc gap. Two planets moving towards each other, velocity should NOT consecutive while swapping their locations.