Turn camera movement into destination buttons: enter a solar orbit, then insert
around the Pleiades and Orion Nebula using RA, Dec, and distance values.
Learning goal
Lesson 2 called individual transitions directly. This lesson gives those ideas
chapter semantics: named functions, catalogue-style sky targets, orbit cameras,
and direct navigation actions.
The buttons only choose chapters. Each chapter owns its target, orbit camera, duration, and orbital plane.
Live code
Chapters from the Sun to Orion
Use the buttons to enter a 1 pc solar orbit, fly to the Pleiades, or insert around the Orion Nebula from RA, Dec, and distance targets.
Ready.
Console
Things to try
Change the Pleiades or Orion distancePc values to move the target closer or farther away.
Change their radiusPc values to tighten or widen the inserts.
Change ORION_TILTED_ORBIT_NORMAL to see the arrival plane change.
Add another chapter key with its own target and orbit settings.
Adjust each chapter's durationSecs.
What changed in the code
The chapter table is ordinary app code. The cluster targets are written as
RA, Dec, and parsec distance; SkyKit resolves them into 3D navigation targets
when goTo() invokes the navigation actions. lockAt
keeps the camera on the destination while orbitalInsert builds the
smooth route into the final orbit. The Sun stays as a parsec vector because a
zero-distance target has no meaningful RA or Dec.