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

timeBuildfunction

Builds a ship at a level and times it: the pieces of every module and then the mesh the viewer would be handed. The budget for it is BUILD_BUDGET_MS.

Import it

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

Definition

function timeBuild(ship: ShipList, level: "coarse" | "fine", options?: ModuleOptions): BuildTime

Parameters

NameTypeDescription
shipShipList

The ship's list.

level"coarse" | "fine"

coarse or fine.

options (optional)ModuleOptions

What to draw, for every module.

Returns

BuildTime

The milliseconds, the number of pieces and of triangles.

Examples

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

const coarse = timeBuild(SAMPLE_SHIPS.scout, "coarse");
console.log(coarse.ms < 1000, coarse.pieces, coarse.triangles);
true 43 17360

What it prints (run when this page was built)

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