From c30fb2eea9b64e72213388751a8f4a848916d587 Mon Sep 17 00:00:00 2001 From: march3 Date: Sun, 6 Aug 2023 14:13:27 +0800 Subject: [PATCH] =?UTF-8?q?Python=E8=B6=85=E4=BA=BA-=E5=AE=87=E5=AE=99?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sim_scenes/solar_system/earth_moon_reality.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sim_scenes/solar_system/earth_moon_reality.py b/sim_scenes/solar_system/earth_moon_reality.py index 1338ad9..291caf5 100644 --- a/sim_scenes/solar_system/earth_moon_reality.py +++ b/sim_scenes/solar_system/earth_moon_reality.py @@ -107,9 +107,10 @@ class SolarSystemRealitySim: @return: """ if self.clock_position_center: - position, origin = (0, .25), (0, 0), + position, origin = (0, .25), (0, 0) else: - position, origin = (0.60, -0.465), (-0.5, 0.5), + # position, origin = (0.60, -0.465), (-0.5, 0.5) + position, origin = (-0.60, -0.465), (-0.5, 0.5) ControlUI.current_ui.show_message(dt.strftime('%Y-%m-%d %H:%M:%S'), position=position, @@ -208,9 +209,9 @@ class SolarSystemRealitySim: self.earth_camera.camera_init_val = +3000000 elif time_data.total_days > 90: self.earth_camera.camera_init_val = +1200000 + elif time_data.total_days > 90: + self.earth_camera.camera_init_val += 600000 elif time_data.total_days > 60: - self.earth_camera.camera_init_val += 300000 - elif time_data.total_days > 30: self.earth_camera.camera_init_val += 100000 camera.x = -300 # 100 -- GitLab