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

Assemblytype

A ship put together: its places, its mass and size, and the problems found.

Import it

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

Definition

interface Assembly {
    placed: Placed[];
    issues: ShipIssue[];
    mass: number;
    propellant: number;
    length: number;
    width: number;
    depth: number;
    ok: boolean;
}

Members

NameTypeDescription
placedPlaced[]
issuesShipIssue[]
massnumber

Dry mass in tonnes, propellant when full in tonnes.

propellantnumber
lengthnumber

Metres: the box the placed modules fill (from their declared sizes).

widthnumber
depthnumber
okboolean

Examples

import { assemble, type Assembly } from "@johnmorrisdotca/uchusen-rockets";

const ship: Assembly = assemble([{ module: "engine-fusion-3" }, { module: "tank-cryo-12" }]);
console.log(ship.ok, ship.placed.length, ship.mass);
true 2 940

What it prints (run when this page was built)

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