Reference · Rockets, variants, parts and the fit check
ModuleOptionstype
What a module draws with: how much small detail, whether to open the hull, a different colour scheme, a seed for the weathering.
Import it
import type { ModuleOptions } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface ModuleOptions {
detail?: number;
cutaway?: boolean;
livery?: LiveryName;
hull?: HullStackName;
seed?: string;
cutYaw?: number;
level?: "coarse" | "fine";
separation?: boolean | SeparationOptions;
}
Members
| Name | Type | Description |
|---|---|---|
detail (optional) | number | undefined | How much small detail, 0.25 to 1: a ship of many modules lowers it so its mesh stays small. Left out: 1. |
cutaway (optional) | boolean | undefined | Open the hull on the windward side and show the inside, for the modules that have one. |
livery (optional) | "foil" | "industrial" | "science" | "command" | "transport" | undefined | A different colour scheme. |
hull (optional) | HullStackName | undefined | The hull layers a cutaway shows: a role's stack from |
seed (optional) | string | undefined | Which of several of the same module this is, so the weathering differs. |
cutYaw (optional) | number | undefined | Where a cutaway opens, in degrees round the spine from +Z towards +X: 0 opens on +Z (the default), 90 on +X, 180 on -Z. A ship whose own axes differ turns it to face its own camera. |
level (optional) | "coarse" | "fine" | undefined |
|
separation (optional) | boolean | SeparationOptions | undefined | Plan a separation here: the module's base carries a separation joint (a split collar, latches, bolt caps and umbilical plates). |
Examples
import { KIT, type ModuleOptions } from "@johnmorrisdotca/uchusen-rockets";
const options: ModuleOptions = { detail: 0.5, cutaway: true };
console.log(KIT["tank-cryo-12"].pieces(options).length);660What it prints (run when this page was built)