Skip to the content

Uchusen Rockets宇宙船

Rockets drawn from sourced sizes: line drawings and painted 3D views you drop into a page, take apart and turn round, and a typed model that checks whether a rocket really goes together.

Uchusen is the Japanese word 宇宙船 for spaceship. About the name

Contents

Reference · Rockets, variants, parts and the fit check

performanceOffunction

What a ship can do: from the mass of its modules and the thrust of its main engines. fuelFraction is how much of the propellant is spent on the voyage (all of it by default).

Import it

import { performanceOf } from "@johnmorrisdotca/uchusen-rockets";

Definition

function performanceOf(ship: ShipList, fuelFraction?: number): Performance

Parameters

NameTypeDescription
shipShipList

The ship's list of modules.

fuelFraction (optional)number

The part of the propellant used.

Returns

Performance

Thrust, acceleration, exhaust speed, the speeds its fuel allows and its burn time.

Examples

import { performanceOf, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";

const p = performanceOf(SAMPLE_SHIPS.hauler);
console.log(p.accelerationFull.toFixed(3), "g", p.cruise.toFixed(2), "c");
2.606 g 0.01 c

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/uchusen-rockets 0.14.0.