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

Python超人-宇宙模拟器

上级 bda0c387
......@@ -63,8 +63,8 @@ class TwoWayFoilSim:
self.two_way_foil = QuadObj(texture='two_way_foil.png',
# size_scale=4e7,
size_scale=1e7,
init_velocity=[0, -6, 150],
init_position=[0, 0.5 * AU, -10 * AU]) \
init_velocity=[0, -8, 150],
init_position=[0, 0.5 * AU, -8 * AU]) \
.set_light_disable(True).set_ignore_gravity(True)
# 不断扩展的圆形二向箔
self.two_way_foil_circle = CircleObj(texture="two_way_foil_circle.png",
......@@ -110,8 +110,8 @@ class TwoWayFoilSim:
if planet.scale_y_v > planet.init_scale_y / 50:
planet.scale_y_v /= 1.01
planet.scale_x_v += 0.15
else:
planet.scale_x_v += 0.05
# else:
# planet.scale_x_v += 0.05
# 灯光关闭,不然压到2纬就会是黑色
planet.set_light_off(True)
......@@ -213,11 +213,11 @@ if __name__ == '__main__':
# 常用快捷键: P:运行和暂停 O:重新开始 I:显示天体轨迹
# position = 左-右+、上+下-、前+后-
ursina_run(sim.bodies,
SECONDS_PER_WEEK,
SECONDS_PER_WEEK / 4,
# position=(0, 2 * AU, -11 * AU),
position=(0, 0.5 * AU, -5 * AU),
cosmic_bg='',
bg_music='sounds/no_glory.mp3',
# bg_music='sounds/no_glory.mp3',
show_camera_info=False,
show_control_info=False,
timer_enabled=True,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册