From 460909a9409e5db9c9e2816d914ab067a8a606a8 Mon Sep 17 00:00:00 2001 From: march3 Date: Mon, 23 Oct 2023 14:04:37 +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/earth_seasons_2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim_scenes/science/earth_seasons_2.py b/sim_scenes/science/earth_seasons_2.py index f055fff..b9282fa 100644 --- a/sim_scenes/science/earth_seasons_2.py +++ b/sim_scenes/science/earth_seasons_2.py @@ -9,7 +9,7 @@ from ursina import camera from bodies import Sun, Earth -from common.consts import SECONDS_PER_DAY, AU +from common.consts import SECONDS_PER_DAY, SECONDS_PER_HOUR, AU from sim_scenes.func import ursina_run, camera_look_at, create_sphere_sky from sim_scenes.science.earth_season_func import get_solar_terms_angles, create_important_pos_earths, \ get_earth_pos_vel_by_term_name, create_earth @@ -118,7 +118,7 @@ if __name__ == '__main__': # 使用 ursina 查看的运行效果 # 常用快捷键: P:运行和暂停 O:重新开始 I:显示天体轨迹 # position = 左-右+、上+下-、前+后- - ursina_run(bodies, SECONDS_PER_DAY / 2, + ursina_run(bodies, SECONDS_PER_HOUR * 3, position=(0, 0, 0), # 摄像机和太阳是相同位置 cosmic_bg='', show_grid=False, -- GitLab