Giter VIP home page Giter VIP logo

spacesim's Introduction

SpaceSim

SpaceSim is an n-body simulation of the solar system complete with stars, planets, moons, and spacecraft. It is currently setup to simulate various SpaceX launch profiles with vehicles including the Dragon, Falcon 9, and Falcon Heavy.

Installation

If you just want to run the simulation, download the latest build found under the builds directory. Unzip the build and launch SpaceSim.exe to get started. Otherwise, you can clone this repository and browse the source code.

In order to have the best graphically experience, your video card must support double precision openCL kernels. If support isn't detected the program will fallback to basic GDI rendering.

The program accepts two command line arguments. If you want to run the game in windowed mode add a "-w". To launch a custom flight profile use the profile's name like "Falcon Heavy 35000kg".

Controls

The control scheme is similar to Kerbal Space Program.

Button Action
Enter Starts the simulation.
Escape Exits the simulation.
Scroll Changes the zoom factor.
[ Switch focus to previous body.
] Switch focus to next body.
, Reduce simulation speed.
. Increase simulation speed.

Flight Profiles

Flight profiles are found in the 'flight profiles' root directory. To add a new flight profile create a folder under that directory with a unique name. Flight profiles consist of various xml files with controls for the vehicles components. The control format allows for 5 basic commands (ignition, shutdown, throttle, stage, and orient). The payload.xml file specifies the payload properties like DryMass and PropellantMass. Use the included flight profile as a guide for creating new profiles.

See the instructions above for launching custom profiles.

spacesim's People

Contributors

zlynn1990 avatar

Watchers

James Cloos avatar LujunW 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.