genericSatellite関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A generic satellite as a drawing of radius 1 about the origin, its long axis along +x (the way it flies), its top along +z and its left along +y, the family's convention for a model, with its own light that light(toSun) turns to the Sun. One group of a few meshes, made once and disposed with dispose.
インポート
import { genericSatellite } from "@johnmorrisdotca/chikyu-earth/space";
定義
function genericSatellite(three: typeof THREE, kind: SatelliteKind, shared?: { sun: THREE.DirectionalLight; }): BodyDrawing
引数
| 名前 | 型 | 説明 |
|---|---|---|
three | typeof THREE | three.js (the parts the demo's subset holds: |
kind | SatelliteKind | What to draw. |
shared (省略可) | { sun: THREE.DirectionalLight; } | undefined | A Sun light the scene owns ( |
戻り値
BodyDrawing
The drawing, with light and dispose.
例
import { genericSatellite } from "@johnmorrisdotca/chikyu-earth/space";
const three = await import("three");
const drawing = genericSatellite(three, "communications");
console.log(drawing.object.children.length);
drawing.dispose();この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。