BeamPhase型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What the beam is doing: taking hold, carrying, letting go, or watching the part settle into its slot.
インポート
import type { BeamPhase } from "@johnmorrisdotca/uchusen-rockets";
定義
type BeamPhase = "attach" | "carry" | "release" | "settle";
例
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);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。