ExplodedModule型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One module of an exploded assembly: its name, how far it moves from its place, and the points it mounts at.
インポート
import type { ExplodedModule } from "@johnmorrisdotca/uchusen-rockets";
定義
interface ExplodedModule {
place: number;
module: string;
name: string;
assembled: Vec3;
exploded: Vec3;
mounts: {
id: string;
kind: "collar-top" | "collar-bottom" | "port";
collar: string;
diameter: number;
at: Vec3;
}[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
place | number | |
module | string | |
name | string | |
assembled | Vec3 | Where it stands assembled and where the exploded view puts it, as the origin of its base. |
exploded | Vec3 | |
mounts | { id: string; kind: "collar-top" | "collar-bottom" | "port"; collar: string; diameter: number; at: Vec3; }[] | Its mounting points: each collar (class, diameter and centre of its face, exploded) and each port. |
例
import { exploded, type ExplodedModule, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
const one: ExplodedModule = exploded(SAMPLE_SHIPS.scout)[0];
console.log(one.name, one.mounts.length);Fusion engine cluster, 3 1出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。