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

Python超人-宇宙模拟器

上级 5ec443d9
......@@ -25,7 +25,7 @@ class Jupiter(Body):
def __init__(self, name="木星", mass=1.8982e27,
init_position=[0, 0, 5.19 * AU],
init_velocity=[-13.06, 0, 0],
texture="jupiter1.jpg", size_scale=1.0, distance_scale=1.0,
texture="jupiter.png", size_scale=1.0, distance_scale=1.0,
rotation_speed=36.2537, ignore_mass=False, trail_color=None, show_name=False):
params = {
"name": name,
......
......@@ -81,7 +81,7 @@ if __name__ == '__main__':
# 使用 ursina 查看的运行效果
# 常用快捷键: P:运行和暂停 O:重新开始 I:显示天体轨迹
# position = 左-右+、上+下-、前+后-
ursina_run(bodies, SECONDS_PER_HOUR / 6,
position=(0, 0, -320000),
ursina_run(bodies, SECONDS_PER_HOUR / 10,
position=(0, 0, -300000),
show_timer=True,
view_closely=0.001)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册