DRONE定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { DRONE } from "@johnmorrisdotca/uchusen-rockets";
定義
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
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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. |
例
import { DRONE } from "@johnmorrisdotca/uchusen-rockets";
console.log(DRONE.emitter, DRONE.weldTip);[ 0, 0.7145595641157383, 0.576 ] [ -0.23373721416365542, 0.08269828060553674, 0.6053603892883402 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。