提交 d437f278 编写于 作者: 三月三net's avatar 三月三net

Python超人-宇宙模拟器

上级 406b7343
......@@ -72,8 +72,8 @@ class HalleyCometSim(HalleyCometSimBase):
# UrsinaConfig.trail_length = 180
UrsinaConfig.trail_factor = 3
r = 1
self.set_window_size((int(1920 * r), int(1080 * r)), True)
# r = 1
# self.set_window_size((int(1920 * r), int(1080 * r)), True)
# camera.clip_plane_near = 0.1
camera.clip_plane_far = 1000000
......@@ -161,7 +161,7 @@ class HalleyCometSim(HalleyCometSimBase):
# 距离转为天文单位
d_au = distance_sun / AU
# 渐渐消失的距离范围(开始消失距离, 完全消失距离)
HIDE_DISTANCE = 1, 15
HIDE_DISTANCE = 3, 12
# 彗星最大的透明度
MAX_ALPHA = 0.8
......@@ -288,11 +288,11 @@ class HalleyCometSim(HalleyCometSimBase):
self.set_comet_trail_alpha(d_sun)
panel_text = "哈雷彗星:\n\n距离太阳:%.3f AU" % (d_sun / AU)
panel_text += "\n\n离日最远:%.3f AU" % (self.comet_aphel / AU)
panel_text += "\n\n离日最近:%.3f AU" % (self.comet_peri / AU)
panel_text = "哈雷彗星:\n\n距离太阳:%.3f\tAU" % (d_sun / AU)
panel_text += "\n\n离日最远:%.3f\tAU" % (self.comet_aphel / AU)
panel_text += "\n\n离日最近:%.3f\tAU" % (self.comet_peri / AU)
velocity, _ = get_value_direction_vectors(self.halley_comet.velocity)
panel_text += "\n\n当前速度:%.3f km/s" % velocity
panel_text += "\n\n当前速度:%.3f\tkm/s" % velocity
self.text_panel.text = panel_text
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册