Reference · Rockets, variants, parts and the fit check
Jointtype
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 it
import type { Joint } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface Joint {
kind: "stage";
y: number;
diameter: number;
}
Members
| Name | Type | Description |
|---|---|---|
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. |
Examples
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 }What it prints (run when this page was built)