Coder Social home page Coder Social logo

cs-174a-team-project's Introduction

Solar System Explorer

An interactive simulation of the solar system's eight planets
Created by: Ellie Krugler, David Davini, and Sharjeel Rahman

Link to the Project

The zip file was too large to be submitted directly to Bruinlearn, so we're providing the link here instead.

Table of contents

Introduction

The Solar System Explorer enables you to fly a rocketship around the solar system or navigate using the keyboard in order to view the eight planets and sun behaving according to their NASA-provided parameters.

The planets are set to ideal sizes and rotation speeds for viewing, but can be changed to accurate sizes, speeds, or rotation rates using the toggles found below the viewer. Furthermore, the sun has been scaled down to allow for a closer representation of the planets.

The best way to explore this simulation is through the user-controlled rocketship. Pressing t causes the simulation to enter rocketship mode, at which point the ijkl keys re-orient the rocketship and the m key adds thrust to move it forward.

In order to get a wider view of the solar system as a whole, there is also the default view of the entire solar system that can be reset.

In order to pick a specific date, there is a calendar widget below the simulation that will move the planets to their locations on the date selected. Below this widget is a pause/play option, which makes it possible to stop the planets wherever they are in their revolution about the sun. The date widget acts as a start date and does not update as the planets revolve.

Toggles and Controls

Viewer Shortcuts

Movement Control
Forward/Left/Back/Right w a s d
Up/Down space z
Roll Left/Right , .
Overview y

Moving the rocket

Function Control
Enter rocket mode t
Add thrust m
Up/Left/Down/Right i j k l
Spin Left/Right u o

Other

Function Control
Stop/start revolutions Control + 0
Select a date use date widget
Change planet size first slider
Change rotation speed second slider
Change passage of time rate third slider

Note: Buttons for controls can be found below the simulation window

How to run it

The best way to begin running our program is to execute server.py in Python.

Next, navigate to localhost:8000 on your browser.

Please allow a couple seconds for the simulation to finish loading -- the images loaded are high-resolution so it will take a second. After the simulation is done loading, the controls shown above can be used to explore the simulation.

Code Sources

cs-174a-team-project's People

Contributors

daviddavini avatar elliekrugler avatar shar-rahman avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.