Go to file
Krafpy 8da935b047 2D physics fix and error handling consistency
- Reimplemented 2D orbital mechanics functions in physics-2d.ts
and encaspulated inside a `Physics2D` namespace.
- Deleted physics.ts and moved the required functions into physics-3d.ts
Further cleaning and reimplemntation will be done on the physics-3d.ts
content.
- Forced consistency on error handling : every raised error throws
an `Error` object.
- Commented sections relative to 2D physics and sequence generation.
2021-12-19 17:19:30 +01:00
2021-08-15 21:31:25 +02:00
2021-08-16 17:30:26 +02:00
2021-08-15 21:31:25 +02:00
2021-08-15 19:12:07 +02:00
2021-08-15 21:31:25 +02:00
2021-08-21 00:47:28 +02:00
2021-08-18 10:30:31 +02:00
2021-08-18 11:20:56 +02:00
2021-08-18 12:05:52 +02:00
2021-08-21 18:48:01 +02:00

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';

Used resources

Description
An online tool providing automatic design of trajectories with multiple gravity assists for Kerbal Space Program.
Readme 699 KiB
Languages
TypeScript 71%
JavaScript 16%
HTML 9.6%
CSS 3.4%