Reference · Rockets, variants, parts and the fit check
BeamPhasetype
What the beam is doing: taking hold, carrying, letting go, or watching the part settle into its slot.
Import it
import type { BeamPhase } from "@johnmorrisdotca/uchusen-rockets";
Definition
type BeamPhase = "attach" | "carry" | "release" | "settle";
Examples
import { tractorBeam, type BeamPhase } from "@johnmorrisdotca/uchusen-rockets";
const phase: BeamPhase = "carry";
console.log(tractorBeam({ from: [0, 0, 0], part: [0, 8, 0], slot: [0, 10, 0] }, phase).length > 0);trueWhat it prints (run when this page was built)