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

Python超人-宇宙模拟器

上级 2a05afab
......@@ -228,7 +228,8 @@ if __name__ == '__main__':
# 日期是当年的第几天
day_of_year = dt.timetuple().tm_yday
# 计算出:日期当天的偏转角度 - 贴图的误差
angle_of_day = day_of_year * (360 / 365) - 93.5
# angle_of_day = day_of_year * (360 / 365) - 93.5 # 2023.7.25
angle_of_day = day_of_year * (360 / 365) - 73 # 2023.7.27
# 控制地球的自转速度和方向,保障白天,中国面对太阳(会存在一点点的误差,可以通过上面“贴图的误差”进行调整)。
earth.planet.rotation_y = -(time_data.total_hours) * 15 - angle_of_day
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册