Reference · Rockets, variants, parts and the fit check
Placedtype
One module placed on a ship: where its origin stands and how it is turned.
Import it
import type { Placed } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface Placed {
index: number;
module: KitModule;
at: Vec3;
turn: number;
how: "spine" | "port" | "beside";
}
Members
| Name | Type | Description |
|---|---|---|
index | number | |
module | KitModule | |
at | Vec3 | |
turn | number | |
how | "spine" | "port" | "beside" | How it is held: on the spine, hung from a port, or beside the spine. |
Examples
import { assemble, type Placed } from "@johnmorrisdotca/uchusen-rockets";
const placed: Placed[] = assemble([{ module: "engine-fusion-3" }, { module: "tank-cryo-12" }]).placed;
console.log(placed.map((one) => one.at[1]));[ 0, 11.6 ]What it prints (run when this page was built)