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

Python超人-宇宙模拟器

上级 8206429f
...@@ -42,7 +42,19 @@ class SunEarthMoonSim(UniverseSimScenes): ...@@ -42,7 +42,19 @@ class SunEarthMoonSim(UniverseSimScenes):
self.earth = Earth(size_scale=10e2, show_trail=False) self.earth = Earth(size_scale=10e2, show_trail=False)
self.earth_start = Earth(size_scale=9.5e2, show_trail=False, rotation_speed=0) self.earth_start = Earth(size_scale=9.5e2, show_trail=False, rotation_speed=0)
self.bodies = [self.sun, self.earth, self.moon, self.earth_start] self.camera_look = CoreValagaClas(name="摄像机镜头", mass=1e30, color=(111, 140, 255),
init_position=[0, 0, 0],
# init_position=[0, 3.3 * AU, -AU],
init_velocity=[0, 0, 0],
size_scale=1e4).set_ignore_gravity(True)
self.camera_target = CoreValagaClas(name="摄像机目的", mass=1e30, color=(111, 140, 255),
# init_position=[0, 0, 0],
init_position=[0, 3.3 * AU, -AU],
init_velocity=[0, 0, 0],
size_scale=1e4).set_ignore_gravity(True)
self.bodies = [self.sun, self.earth, self.moon, self.earth_start, self.camera_look, self.camera_target]
for body in self.bodies: for body in self.bodies:
body.init_velocity = [0, 0, 0] body.init_velocity = [0, 0, 0]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册