Reference · Rockets, variants, parts and the fit check
FlightPhasetype
One phase of a flight: its id and name, what happens, when (a figure with its source), how many engines burn, how each part stands, and how far the ground has fallen away. The poses and the smoke are a picture, not a measurement.
Import it
import type { FlightPhase } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface FlightPhase {
id: string;
name: string;
what: string;
at: Figure;
burns: Readonly<Record<string, FlightBurn>>;
pose: Readonly<Record<string, PartPose>>;
ground: number;
smoke?: number;
air?: number;
altitude?: Figure<string>;
speed?: Figure<string>;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
name | string | |
what | string | What happens, in a line. |
at | Figure<number> | Seconds from the flight's zero, on the page's own clock. |
burns | Readonly<Record<string, FlightBurn>> | |
pose | Readonly<Record<string, PartPose>> | |
ground | number | How far the ground has fallen from under the rocket, in heights of the whole vehicle. A picture. |
smoke (optional) | number | undefined | How much smoke and water stands on the pad, 0 to 1. A picture. |
air (optional) | number | undefined | 0 near the ground, 1 high up, where a flame fans out. A picture. |
altitude (optional) | Figure<string> | undefined | |
speed (optional) | Figure<string> | undefined |
Examples
import { FLIGHTS, type FlightPhase } from "@johnmorrisdotca/uchusen-rockets";
const phase: FlightPhase | undefined = FLIGHTS[0]?.phases[0];
console.log(phase?.name, phase?.what);Ignition The booster's engines start while it is held on the pad, with the flame deflector running.What it prints (run when this page was built)