Reference · Rockets, variants, parts and the fit check
DRONEconstant
Where things are on the SPX repair drone, in its own frame: metres, its lowest point at y = 0, its front towards +Z. A build uses two of them: emitter, the tractor beam's origin at the middle of the lens
glass (the beam leaves along emitterDirection), and weldTip, the point of the welding tool on the left arm.
Import it
import { DRONE } from "@johnmorrisdotca/uchusen-rockets";
Definition
const DRONE: { readonly emitter: Vec3; readonly emitterDirection: Vec3; readonly weldTip: Vec3; readonly gripper: Vec3; readonly diameter: 1.03; } = {
emitter: [0, 0.03 + DRONE_LIFT, 0.576] as Vec3,
emitterDirection: [0, 0, 1] as Vec3,
weldTip: (() => {
const t = weldTip();
return [t[0], t[1] + DRONE_LIFT, t[2]] as Vec3;
})(),
gripper: (() => {
const w = wristOf(ARMS[0]);
return [w.to[0] + w.d[0] * 0.17, w.to[1] + w.d[1] * 0.17 + DRONE_LIFT, w.to[2] + w.d[2] * 0.17] as Vec3;
})(),
diameter: 1.03,
} as const
Members
| Name | Type | Description |
|---|---|---|
emitter | Vec3 | The tractor beam's emitter: the middle of the lens glass. The beam leaves along +Z. |
emitterDirection | Vec3 | The direction the beam leaves along. |
weldTip | Vec3 | The weld's tip: the end of the welding tool on the left arm. |
gripper | Vec3 | The gripper's centre between its fingers, on the right arm. |
diameter | 1.03 | The saucer's diameter, metres. |
Examples
import { DRONE } from "@johnmorrisdotca/uchusen-rockets";
console.log(DRONE.emitter, DRONE.weldTip);[ 0, 0.7145595641157383, 0.576 ] [ -0.23373721416365542, 0.08269828060553674, 0.6053603892883402 ]What it prints (run when this page was built)