Reference · Rockets, variants, parts and the fit check
RoundPlacetype
Text wrapped on a hull of revolution round the spine (the Y axis, or the line through axis): y is the height of the middle of the capitals and az the azimuth of the anchor, in radians round Y from +Z
towards +X, as everywhere else in the kit. radius is the hull's radius, one number or a function of the height for a cone. run is the way the text reads: around the hull, left to right seen from outside
(the default); up the spine, towards the bow, for lettering along a ship's length; or down.
Import it
import type { RoundPlace } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface RoundPlace extends PlaceBase {
radius: number | ((y: number) => number);
y: number;
az: number;
run?: "around" | "up" | "down";
axis?: readonly [
number,
number
];
sides?: number;
}
Members
| Name | Type | Description |
|---|---|---|
radius | number | ((y: number) => number) | |
y | number | |
az | number | |
run (optional) | "around" | "up" | "down" | undefined | |
axis (optional) | readonly [number, number] | undefined | The x, z of the spine, when it is not the Y axis. |
sides (optional) | number | undefined | How many sides the hull's own mesh has (the kit's drums have 56), so the lettering clears the flats between them. |
height | number | The height of a capital letter, in metres. |
align (optional) | "start" | "middle" | "end" | undefined | Which end of the text is on the anchor: |
Examples
import type { RoundPlace } from "@johnmorrisdotca/uchusen-rockets";
const hull: RoundPlace = { radius: 6.7, y: 12, az: 0, height: 1.2, align: "middle", run: "around" };
console.log(hull.radius);6.7What it prints (run when this page was built)