From b6ceb267d8278a9e81674483baf4b07828c4089e Mon Sep 17 00:00:00 2001 From: march3 Date: Thu, 14 Mar 2024 14:54:22 +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/sci_pop/sun_earth_moon.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sim_scenes/sci_pop/sun_earth_moon.py b/sim_scenes/sci_pop/sun_earth_moon.py index 4f1cf42..15aabd8 100644 --- a/sim_scenes/sci_pop/sun_earth_moon.py +++ b/sim_scenes/sci_pop/sun_earth_moon.py @@ -42,7 +42,19 @@ class SunEarthMoonSim(UniverseSimScenes): self.earth = Earth(size_scale=10e2, show_trail=False) self.earth_start = Earth(size_scale=9.5e2, show_trail=False, rotation_speed=0) - self.bodies = [self.sun, self.earth, self.moon, self.earth_start] + self.camera_look = CoreValagaClas(name="摄像机镜头", mass=1e30, color=(111, 140, 255), + init_position=[0, 0, 0], + # init_position=[0, 3.3 * AU, -AU], + init_velocity=[0, 0, 0], + size_scale=1e4).set_ignore_gravity(True) + + self.camera_target = CoreValagaClas(name="摄像机目的", mass=1e30, color=(111, 140, 255), + # init_position=[0, 0, 0], + init_position=[0, 3.3 * AU, -AU], + init_velocity=[0, 0, 0], + size_scale=1e4).set_ignore_gravity(True) + + self.bodies = [self.sun, self.earth, self.moon, self.earth_start, self.camera_look, self.camera_target] for body in self.bodies: body.init_velocity = [0, 0, 0] -- GitLab