Erde-Blick passend auf Jupiter zoomen

This commit is contained in:
2026-09-12 10:12:43 +02:00
parent d4c44c55d2
commit dd430bcfd1
+8 -2
View File
@@ -940,7 +940,7 @@ function shiftGrsRotation(angleDeg) {
grsRefAngle = currentAngle + (angleDeg * Math.PI / 180);
}
function applyEarthView(targetRadius = 200) {
function applyEarthView(targetRadius = 280) {
const geoVec = AstronomyEngine.GeoVector(AstronomyEngine.Body.Jupiter, simDate, true);
const toEarth = { x: -geoVec.x, y: -geoVec.y, z: -geoVec.z };
const ecl = AstronomyEngine.RotateVector(rotationEqjToEcl, toEarth);
@@ -1146,7 +1146,13 @@ function attachUiHandlers() {
updateCamera();
});
btnEarth.addEventListener('click', () => applyEarthView());
btnEarth.addEventListener('click', () => {
// Im Erde-Blick sollen alle vier Galileischen Bahnen vollständig sichtbar sein.
showOrbits = true;
btnOrbits.classList.add('is-active');
moonOrbitLines.forEach((line) => { line.visible = true; });
applyEarthView(280);
});
btnOrbits.addEventListener('click', () => {
showOrbits = !showOrbits;