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

inspectAtfunction

One drone's place around a finished hull.

Import it

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

Definition

function inspectAt(index: number, count: number, age: number, hull: HullBox, speed?: number): InspectPlace

Parameters

NameTypeDescription
indexnumber

Which drone, from 0.

countnumber

How many are flying, from 1 to 100.

agenumber

Seconds since the flight started.

hullHullBox

The ship's box, in metres.

speed (optional)number

How fast the clock runs. 1 is the ordinary pace.

Returns

InspectPlace

The drone, the spot on the hull, and whether it is paused.

Examples

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

const place = inspectAt(0, 4, 1, { min: [-2, 0, -2], max: [2, 10, 2] });
console.log(place.where[0] > 2 ? "out" : "in");
out

What it prints (run when this page was built)

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