本文へ移動

Uchusen Rockets宇宙船

出典つきの寸法から描いたロケットです。ページに置いて、分解して、回して見られる線画と彩色した3Dビューに加え、ロケットが本当に組み合わさるかを確かめる、型付きのデータモデルを備えています。

Uchusen は、宇宙を飛ぶ乗り物を意味する日本語「宇宙船」(うちゅうせん)から取った名前です。 名前について(英語)

目次

リファレンス · ロケット・型式・部品・適合チェック

FlightPhase型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

One phase of a flight: its id and name, what happens, when (a figure with its source), how many engines burn, how each part stands, and how far the ground has fallen away. The poses and the smoke are a picture, not a measurement.

インポート

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

定義

interface FlightPhase {
    id: string;
    name: string;
    what: string;
    at: Figure;
    burns: Readonly<Record<string, FlightBurn>>;
    pose: Readonly<Record<string, PartPose>>;
    ground: number;
    smoke?: number;
    air?: number;
    altitude?: Figure<string>;
    speed?: Figure<string>;
}

メンバー

名前型説明
idstring
namestring
whatstring

What happens, in a line.

atFigure<number>

Seconds from the flight's zero, on the page's own clock.

burnsReadonly<Record<string, FlightBurn>>
poseReadonly<Record<string, PartPose>>
groundnumber

How far the ground has fallen from under the rocket, in heights of the whole vehicle. A picture.

smoke (省略可)number | undefined

How much smoke and water stands on the pad, 0 to 1. A picture.

air (省略可)number | undefined

0 near the ground, 1 high up, where a flame fans out. A picture.

altitude (省略可)Figure<string> | undefined
speed (省略可)Figure<string> | undefined

例

import { FLIGHTS, type FlightPhase } from "@johnmorrisdotca/uchusen-rockets";

const phase: FlightPhase | undefined = FLIGHTS[0]?.phases[0];
console.log(phase?.name, phase?.what);
Ignition The booster's engines start while it is held on the pad, with the flame deflector running.

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/uchusen-rockets 0.14.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。