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

ModuleOptionstype

What a module draws with: how much small detail, whether to open the hull, a different colour scheme, a seed for the weathering.

Import it

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

Definition

interface ModuleOptions {
    detail?: number;
    cutaway?: boolean;
    livery?: LiveryName;
    hull?: HullStackName;
    seed?: string;
    cutYaw?: number;
    level?: "coarse" | "fine";
    separation?: boolean | SeparationOptions;
}

Members

NameTypeDescription
detail (optional)number | undefined

How much small detail, 0.25 to 1: a ship of many modules lowers it so its mesh stays small. Left out: 1.

cutaway (optional)boolean | undefined

Open the hull on the windward side and show the inside, for the modules that have one.

livery (optional)"foil" | "industrial" | "science" | "command" | "transport" | undefined

A different colour scheme.

hull (optional)HullStackName | undefined

The hull layers a cutaway shows: a role's stack from HULL_STACKS. Left out: the module's own.

seed (optional)string | undefined

Which of several of the same module this is, so the weathering differs.

cutYaw (optional)number | undefined

Where a cutaway opens, in degrees round the spine from +Z towards +X: 0 opens on +Z (the default), 90 on +X, 180 on -Z. A ship whose own axes differ turns it to face its own camera.

level (optional)"coarse" | "fine" | undefined

coarse builds the hull, the collars and the big shapes only: a first picture in a moment. fine (the default) adds all the detail; the detail pass of a ship is fineOnly.

separation (optional)boolean | SeparationOptions | undefined

Plan a separation here: the module's base carries a separation joint (a split collar, latches, bolt caps and umbilical plates). true takes the defaults.

Examples

import { KIT, type ModuleOptions } from "@johnmorrisdotca/uchusen-rockets";

const options: ModuleOptions = { detail: 0.5, cutaway: true };
console.log(KIT["tank-cryo-12"].pieces(options).length);
660

What it prints (run when this page was built)

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