Builds a system; anything not given uses DEFAULT_SYSTEM.
ReadonlybodiesEvery body: star first, then home, moon, procedural planets and extra bodies.
ReadonlyoptionsResolved options.
The home planet.
The home planet's moon, if any.
The central star.
Periapsis/apoapsis of a body's orbit around its parent, with their conventional names
(perigee/apogee for the home planet's moons, perihelion/aphelion around the star). null for the star.
Position relative to the parent at time (seconds since J2000), metres.
Optionalout: OrbitStateOrientation at time: the rotation taking body-fixed vectors into the star frame (tilt, then
spin). The tilt leans the north pole towards ecliptic longitude 90° (−Z), like Earth's.
Orbital period of a body around its parent, seconds (0 for the star).
Length of a body's solar day (noon to noon), seconds. For moons, relative to their parent's star.
Spin angle (radians) about the body's own +Y axis at time.
A star system: resolved bodies plus their positions, velocities and orientations at any time. Positions are in the star's frame (the star sits at the origin), float64 metres.
Example