Reference · Rockets, variants, parts and the fit check
InsetParttype
One numbered sub-part of an inset: its number, name, what it does, its size in metres (width, height, depth), where it sits in the assembled inset and how to draw it.
Import it
import type { InsetPart } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface InsetPart {
n: number;
name: string;
does: string;
size: readonly [
number,
number,
number
];
at: Vec3;
pieces: () => Piece[];
}
Members
| Name | Type | Description |
|---|---|---|
n | number | |
name | string | |
does | string | |
size | readonly [number, number, number] | Width, height and depth in metres. |
at | Vec3 | The middle of its base in the assembled inset, in metres. |
pieces | () => Piece[] |
Examples
import { INSETS, type InsetPart } from "@johnmorrisdotca/uchusen-rockets";
const part: InsetPart = INSETS["reactor-core"].parts[0];
console.log(part.n, part.name, part.size);1 Toroidal field coil [ 8, 3, 8 ]What it prints (run when this page was built)