Skip to content

pagict/grav2d

Repository files navigation

Introduction

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.

Get Started

  1. install dependencies
  • spdlog
  • opengl
  • gflags
  • rapidjson
  1. make

the Makefile is currently only support MacOS(for the -framework compiler options), adjust your own platform if needed.**

TODO

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published