From 2f1943c643a95104e3ac0e9e148cdcb00d08a232 Mon Sep 17 00:00:00 2001 From: march3 Date: Sun, 16 Apr 2023 22:17:43 +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/science/four_seasons.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sim_scenes/science/four_seasons.py b/sim_scenes/science/four_seasons.py index b3b6f3c..c89909c 100644 --- a/sim_scenes/science/four_seasons.py +++ b/sim_scenes/science/four_seasons.py @@ -19,13 +19,13 @@ if __name__ == '__main__': """ bodies = [ Sun(size_scale=5e1, texture="transparent.png"), # 太阳透明 - Earth(name="中国春天", size_scale=6e3, texture="earth_hd.jpg", text_color=(0, 255, 0), + Earth(name="中国春天", size_scale=5e3, texture="earth_hd.jpg", text_color=(0, 255, 0), init_position=[-1 * AU, 0, 0], init_velocity=[0, 0, -29.79]), - Earth(name="中国夏天", size_scale=6e3, texture="earth_hd.jpg", text_color=(255, 0, 0), + Earth(name="中国夏天", size_scale=5e3, texture="earth_hd.jpg", text_color=(255, 0, 0), init_position=[0, 0, -1 * AU], init_velocity=[29.79, 0, 0]), - Earth(name="中国秋天", size_scale=6e3, texture="earth_hd.jpg", text_color=(255, 255, 0), + Earth(name="中国秋天", size_scale=5e3, texture="earth_hd.jpg", text_color=(255, 255, 0), init_position=[1 * AU, 0, 0], init_velocity=[0, 0, 29.79]), - Earth(name="中国冬天", size_scale=6e3, texture="earth_hd.jpg", text_color=(0, 255, 255), + Earth(name="中国冬天", size_scale=5e3, texture="earth_hd.jpg", text_color=(0, 255, 255), init_position=[0, 0, 1 * AU], init_velocity=[-29.79, 0, 0]), ] sun = bodies[0] @@ -47,7 +47,7 @@ if __name__ == '__main__': earth_4.planet.rotation_y -= 145 # 冬天 # camera.parent = sun.planet - camera.look_at(earth_4.planet) + camera.look_at(earth_1.planet) camera.rotation_z = 0 # camera.position=[0,0,0] pass -- GitLab