Where to fly the camera to frame an entire system on load (or when
switching to a different system) — fits the star's own direct
"children" (planets, plus anything else anchored straight to the star,
e.g. a deep-space jump point). The fixed default camera position this
replaced ([0, 60, 120], tuned for the Solar System's ~180-unit span out
to Neptune) badly over-framed any much smaller system — a system whose
real extent compresses to single-digit world units rendered as an
indistinguishable cluster of overlapping labels near the centre of a
mostly-empty view. Reusing
computeFocusForBody on the star itself, in its 'system' framing (the
star's own 'body' framing would fill the view with the star alone),
scales correctly to whatever system is actually loaded.
Where to fly the camera to frame an entire system on load (or when switching to a different system) — fits the star's own direct "children" (planets, plus anything else anchored straight to the star, e.g. a deep-space jump point). The fixed default camera position this replaced ([0, 60, 120], tuned for the Solar System's ~180-unit span out to Neptune) badly over-framed any much smaller system — a system whose real extent compresses to single-digit world units rendered as an indistinguishable cluster of overlapping labels near the centre of a mostly-empty view. Reusing computeFocusForBody on the star itself, in its 'system' framing (the star's own 'body' framing would fill the view with the star alone), scales correctly to whatever system is actually loaded.