Reference · The <wakusei-space> element: the Earth, Moon, Sun and planets in their places
RideTargettype
What a camera can ride along with: a body of the view (moon, mars, ... going round the Earth), a moon of a planet in the view (io, going round Jupiter), or any moving point of your own.
Import it
import type { RideTarget } from "@johnmorrisdotca/wakusei-planets/space/element";
Definition
type RideTarget = SpaceBody | MoonId | RidePoint;
Examples
import type { RideTarget } from "@johnmorrisdotca/wakusei-planets/space/element";
const targets: RideTarget[] = ["moon", "io", { at: () => null }];
console.log(targets.length);