From 4627bc59f04aa2b604d9de144b08769c49beacf9 Mon Sep 17 00:00:00 2001 From: march3 Date: Wed, 3 May 2023 14:19:44 +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/earth/earth_moon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sim_scenes/earth/earth_moon.py b/sim_scenes/earth/earth_moon.py index d55f16a..23bbc36 100644 --- a/sim_scenes/earth/earth_moon.py +++ b/sim_scenes/earth/earth_moon.py @@ -23,6 +23,9 @@ if __name__ == '__main__': init_velocity=[OFFSETTING, 0, 0], size_scale=0.5e1) # 地球放大 5 倍,距离保持不变 moon = Moon(init_position=[0, 0, 363104], # 距地距离约: 363104 至 405696 km init_velocity=[-1.03, 0, 0], size_scale=1e1) # 月球放大 10 倍,距离保持不变 + + earth.rotation_speed /= 10 + bodies = [earth, moon] @@ -43,5 +46,4 @@ if __name__ == '__main__': # position = 左-右+、上+下-、前+后- ursina_run(bodies, SECONDS_PER_WEEK, position=(-300000, 1500000, -1000), - show_timer=True, show_trail=True) -- GitLab