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

Labeltype

One label: what it says, the part it points at in the ship's metres (so a 3D view moves it with the part), which side of the ship its text goes, and where it comes from.

Import it

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

Definition

interface Label {
    id: string;
    place: number;
    module: string;
    text: string;
    does: string;
    role: SectionRole;
    at: Vec3;
    side: "left" | "right";
    deck?: number;
}

Members

NameTypeDescription
idstring
placenumber

The place in the ship's list and the module's id.

modulestring
textstring
doesstring
roleSectionRole
atVec3

The point the leader line ends on, in the ship's metres.

side"left" | "right"

Which side of the sheet the text stands: left is -X, right is +X.

deck (optional)number | undefined

The deck number in the ship, for a deck.

Examples

import { labelsOf, SAMPLE_SHIPS, type Label } from "@johnmorrisdotca/uchusen-rockets";

const first: Label = labelsOf(SAMPLE_SHIPS.scout)[0];
console.log(first.text, first.at, first.side);
Three nozzles, magnetic nozzles [ 3.99, 2.784, 0 ] right

What it prints (run when this page was built)

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