Reference · Rockets, variants, parts and the fit check
BeamEndstype
The two ends of a carry, and the slot the part is heading for.
Import it
import type { BeamEnds } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface BeamEnds {
from: Vec3;
part: Vec3;
slot: Vec3;
}
Members
| Name | Type | Description |
|---|---|---|
from | Vec3 | The emitter, on the drone. |
part | Vec3 | Where the part is. |
slot | Vec3 | Where the part settles. |
Examples
import { tractorBeam, type BeamEnds } from "@johnmorrisdotca/uchusen-rockets";
const ends: BeamEnds = { from: [0, 0, 0], part: [0, 8, 0], slot: [0, 10, 0] };
console.log(tractorBeam(ends, "carry").length > 0);trueWhat it prints (run when this page was built)