Reference · Rockets, variants, parts and the fit check
ViewChoicetype
What the family's view controls report: the turn and tip in degrees, the zoom (1 is the whole rocket in the picture) and the pan in pixels.
Import it
import type { ViewChoice } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface ViewChoice {
yaw: number;
tilt: number;
roll?: number;
zoom: number;
panX: number;
panY: number;
}
Members
| Name | Type | Description |
|---|---|---|
yaw | number | |
tilt | number | |
roll (optional) | number | undefined | Degrees about the view's forward axis. Left out, the camera stays upright. |
zoom | number | |
panX | number | |
panY | number |
Examples
import type { ViewChoice } from "@johnmorrisdotca/uchusen-rockets";
const choice: ViewChoice = { yaw: 20, tilt: -5, zoom: 1, panX: 0, panY: 0 };
console.log(choice);{ yaw: 20, tilt: -5, zoom: 1, panX: 0, panY: 0 }What it prints (run when this page was built)