Erde-Blick passend auf Jupiter zoomen
This commit is contained in:
@@ -940,7 +940,7 @@ function shiftGrsRotation(angleDeg) {
|
|||||||
grsRefAngle = currentAngle + (angleDeg * Math.PI / 180);
|
grsRefAngle = currentAngle + (angleDeg * Math.PI / 180);
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyEarthView(targetRadius = 200) {
|
function applyEarthView(targetRadius = 280) {
|
||||||
const geoVec = AstronomyEngine.GeoVector(AstronomyEngine.Body.Jupiter, simDate, true);
|
const geoVec = AstronomyEngine.GeoVector(AstronomyEngine.Body.Jupiter, simDate, true);
|
||||||
const toEarth = { x: -geoVec.x, y: -geoVec.y, z: -geoVec.z };
|
const toEarth = { x: -geoVec.x, y: -geoVec.y, z: -geoVec.z };
|
||||||
const ecl = AstronomyEngine.RotateVector(rotationEqjToEcl, toEarth);
|
const ecl = AstronomyEngine.RotateVector(rotationEqjToEcl, toEarth);
|
||||||
@@ -1146,7 +1146,13 @@ function attachUiHandlers() {
|
|||||||
updateCamera();
|
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', () => {
|
btnOrbits.addEventListener('click', () => {
|
||||||
showOrbits = !showOrbits;
|
showOrbits = !showOrbits;
|
||||||
|
|||||||
Reference in New Issue
Block a user