Reference · Rockets, variants, parts and the fit check
PartPosetype
How a part stands in the picture at a phase. A picture, not a measurement: dx and dy are in heights of the whole vehicle.
Import it
import type { PartPose } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface PartPose {
dx?: number;
dy?: number;
pitch?: number;
rest?: boolean;
gone?: boolean;
moves?: Readonly<Record<string, number>>;
}
Members
| Name | Type | Description |
|---|---|---|
dx (optional) | number | undefined | |
dy (optional) | number | undefined | |
pitch (optional) | number | undefined | Turned this many degrees from upright. |
rest (optional) | boolean | undefined | Its base stands on the ground. |
gone (optional) | boolean | undefined | It has left the picture. |
moves (optional) | Readonly<Record<string, number>> | undefined | Degrees each moving group of the part ( |
Examples
import type { PartPose } from "@johnmorrisdotca/uchusen-rockets";
const pose: PartPose = { dx: 0.2, dy: -0.1, pitch: 12 };
console.log(pose);{ dx: 0.2, dy: -0.1, pitch: 12 }What it prints (run when this page was built)