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

ExplodedModuletype

One module of an exploded assembly: its name, how far it moves from its place, and the points it mounts at.

Import it

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

Definition

interface ExplodedModule {
    place: number;
    module: string;
    name: string;
    assembled: Vec3;
    exploded: Vec3;
    mounts: {
        id: string;
        kind: "collar-top" | "collar-bottom" | "port";
        collar: string;
        diameter: number;
        at: Vec3;
    }[];
}

Members

NameTypeDescription
placenumber
modulestring
namestring
assembledVec3

Where it stands assembled and where the exploded view puts it, as the origin of its base.

explodedVec3
mounts{ id: string; kind: "collar-top" | "collar-bottom" | "port"; collar: string; diameter: number; at: Vec3; }[]

Its mounting points: each collar (class, diameter and centre of its face, exploded) and each port.

Examples

import { exploded, type ExplodedModule, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";

const one: ExplodedModule = exploded(SAMPLE_SHIPS.scout)[0];
console.log(one.name, one.mounts.length);
Fusion engine cluster, 3 1

What it prints (run when this page was built)

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