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 · Journey mode: transfers, launch windows and flip-and-burn trips

Statetype

What is true of the craft at a moment: its place, speed, acceleration, the distances, the clocks, the signal time home and how far it has turned round.

Import it

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

Definition

interface State extends Place {
    dateMs: number;
    burn: "off" | "forward" | "reverse";
    speedFrame: "start" | "earth" | "sun" | "destination";
    speedMs: number;
    gamma: number;
    accelG: number;
    doneKm: number;
    progress: number;
    toDestinationKm: number;
    positionKm: Vec3;
    shipS: number;
    frameS: number;
    signalS: number;
    turned: number;
}

Members

NameTypeDescription
dateMsnumber
burn"off" | "forward" | "reverse"

Which way the engine is firing: not at all, pushing it on, or against its motion.

speedFrame"sun" | "earth" | "start" | "destination"

How the speed is measured: from the start or destination (for a ship that burns all the way), from the Earth, the Sun or the destination.

speedMsnumber
gammanumber
accelGnumber

The acceleration, in g, positive along the motion.

doneKmnumber

Path flown, km, and the fraction of the path, 0 to 1.

progressnumber
toDestinationKmnumber

The straight line from the craft to the destination, km.

positionKmVec3

The craft's place in the trip's frame, km.

shipSnumber

Time on board since lift-off and time since lift-off in the frame of the places, seconds.

frameSnumber
signalSnumber

How long a signal takes to get home from here, seconds.

turnednumber

How far the craft has turned round, 0 (facing forward) to 1 (facing back).

phasePhase
indexnumber
fractionnumber

How far through the phase, 0 to 1.

missionSnumber

Mission seconds from lift-off (negative before).

scalenumber

Mission seconds shown per second on the screen in this phase.

Examples

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

const speed = (state: State) => `${Math.round(state.speedMs)} m/s`;
console.log(typeof speed);
function

What it prints (run when this page was built)

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