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

approachPathfunction

Berth, parts store, the lane abreast of the slot, then the slot. The first three points are outside the hull, on the starboard side.

Import it

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

Definition

function approachPath(drone: number, count: number, slot: readonly [number, number, number], hull: HullBox): [number, number, number][]

Parameters

NameTypeDescription
dronenumber

Which drone, from 0.

countnumber

How many drones share the lane.

slotreadonly [number, number, number]

Where the part is placed, in metres.

hullHullBox

The hull the path must stay outside of.

Returns

[number, number, number][]

Four points, the last of them the slot.

Examples

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

const hull = { min: [-10, 0, -4] as const, max: [10, 40, 4] as const };
console.log(approachPath(0, 2, [0, 20, 0], hull).length);
4

What it prints (run when this page was built)

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