Giter Club home page Giter Club logo

ksp-mga-planner's Introduction

Multiple Gravity Assist Trajectory Planner for KSP

An online tool providing automatic design of trajectories with multiple gravity assists for Kerbal Space Program.

Example trajectory

Dependencies

This project was developed on Visual Studio Code.
It requires type definitions for THREE.js, Chart.js and js-yaml. They can be obtained with the following commands:

npm install --save-dev @types/three
npm install --save-dev @types/js-yaml
npm install --save-dev @types/chart.js

This project also includes THREE.js example classes for line rendering and camera control. In order to have the TypeScript compiler recognize them, the following lines must be addded to node_modules/@types/three/src/Three.d.ts:

/* Examples imports */
/* Example lines */
export * from '../examples/jsm/lines/Line2';
export * from '../examples/jsm/lines/LineGeometry';
export * from '../examples/jsm/lines/LineMaterial';
/* OrbitControls */
export * from '../examples/jsm/controls/OrbitControls';

Solar systems support

The tool can support any solar system configuration. You can contribute to add support for solar systems from known mods.

  1. Fork this project and create a new branch for your solar system.
  2. Create a new folder in data for your system with a config.yml and bodies.yml file following the templates in data/stock.
    • config.yml stores the global configurations of the tool. These parameters may need to be changed depending on the characteristics of the solar system (e.g. duration of a day, camera clip distances for large solar systems...).
    • bodies.yml stores the description of each bodies in the solar system. It must rigorously follow the template format. If your solar system uses Kopernicus configuration files, you can directly convert them into a bodies.yml file via this page.
  3. Add an entry to data/systems.yml for your solar system.
  4. Test the tool locally with your system (run the tool on a local HTTP server), check for the coherence of results and ingame feasibility.
  5. Create a pull request to this repository.

Used resources

ksp-mga-planner's People

Contributors

krafpy avatar lsamman avatar tnqoyxnu 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.