Reference · Rockets, variants, parts and the fit check
SeparationOptionstype
How a separation joint is made: how many latch hooks and umbilical plates it has. Set on a ship's place (separation) or a module's options.
Import it
import type { SeparationOptions } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface SeparationOptions {
latches?: number;
umbilicals?: number;
}
Members
| Name | Type | Description |
|---|---|---|
latches (optional) | number | undefined | Latch hooks round the joint (default 12). |
umbilicals (optional) | number | undefined | Umbilical plates (default 4). |
Examples
import { shipPieces, type SeparationOptions } from "@johnmorrisdotca/uchusen-rockets";
const joint: SeparationOptions = { latches: 8, umbilicals: 2 };
console.log(shipPieces([{ module: "tank-cryo-12" }, { module: "tank-cryo-12", separation: joint }], { detail: 0.3 }).length > 0);trueWhat it prints (run when this page was built)