Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
spin things around each other in opengl
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.rvmrc
Gemfile
Gemfile.lock
README.md
Rakefile
angle.rb
base_class.rb
orbiter.rb
orbiter_tree.rb
orbits.rb
orbits_planets.lite
orbits_time.lite
planets.csv
seed_planets.rb

README.md

Orbits

a simple program to render trees of objects orbiting one another.

Requirements

  • Bundler
  • Datamapper
  • Ruby-OpenGL (You will need native opengl headers)
  • Chingu (Extra Libraries on top of Gosu)
  • Gosu (Ruby Game Library)

Installation

Gosu

Orbits

gem install bundler
bundle install

Configuration

Orbits has two databases, a simple example orbits_time.sqlite and a list of all the planets in our solar system orbits_planets.sqlite specify which one to load in orbiter.rb

Usage

ruby orbits.rb

Todo

Toggle keys for applying uniform/scaled distance from sun to max of height of screen. (also add a draw from middle of sun on far-left mode.. maybe stationary but with axis and moons.. and a 'speed, striped orbit line')

Something went wrong with that request. Please try again.