Joint型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Where a part mates. Every part's origin is the middle of its base on its axis, at its lowest point; Y is up and the windward side faces +Z, in metres.
インポート
import type { Joint } from "@johnmorrisdotca/uchusen-rockets";
定義
interface Joint {
kind: "stage";
y: number;
diameter: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
kind | "stage" | What this joint is, so only like meets like: "stage". |
y | number | Metres above the part's origin. A second stage's bottom joint is above its nozzle, which nests in what is below. |
diameter | number | Metres across at the joint. |
例
import { partEntry, type Joint } from "@johnmorrisdotca/uchusen-rockets";
const top: Joint | undefined = partEntry("starship-v3-booster")?.record.joints.top;
console.log(top);{ kind: 'stage', y: 72.3, diameter: 9 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。