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

Python超人-宇宙模拟器

上级 b7ff36c5
...@@ -52,7 +52,7 @@ class HalleyCometSim: ...@@ -52,7 +52,7 @@ class HalleyCometSim:
self.saturn, # 土星 self.saturn, # 土星
self.uranus, # 天王星 self.uranus, # 天王星
self.neptune, # 海王星 self.neptune, # 海王星
self.pluto, # 冥王星 # self.pluto, # 冥王星
] ]
# endregion # endregion
...@@ -101,7 +101,7 @@ class HalleyCometSim: ...@@ -101,7 +101,7 @@ class HalleyCometSim:
if isinstance(body, HalleComet): if isinstance(body, HalleComet):
continue continue
print("create_orbit_line", body) print("create_orbit_line", body)
orbit_line = create_orbit_line(self.sun, body) orbit_line = create_orbit_line(self.sun, body,rotation_x=70)
orbit_line.body = body orbit_line.body = body
self.orbit_lines.append(orbit_line) self.orbit_lines.append(orbit_line)
......
...@@ -253,6 +253,8 @@ def create_orbit_line(center_obj, orbiting_obj, thickness=5, line_color=None, al ...@@ -253,6 +253,8 @@ def create_orbit_line(center_obj, orbiting_obj, thickness=5, line_color=None, al
if rotation_z is not None: if rotation_z is not None:
orbit_line.rotation_z = rotation_z orbit_line.rotation_z = rotation_z
# orbit_line.look_at(orbiting_obj.planet, axis='back')
def auto_adjust(adj_center_pos=True, adj_scale=True): def auto_adjust(adj_center_pos=True, adj_scale=True):
adj_orbit_line_scale(center_obj, orbiting_obj, orbit_line, adj_center_pos, adj_scale) adj_orbit_line_scale(center_obj, orbiting_obj, orbit_line, adj_center_pos, adj_scale)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册