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

Python超人-宇宙模拟器

上级 d781ef11
......@@ -37,6 +37,7 @@ class EarthOrbitStoppedSim(UniverseSimScenes):
# self.sun = Sun(init_position=[0, 0, 0], color=(255, 255, 200), size_scale=1, texture="fixed_star.png")
self.earth = Earth(init_position=[0, 0, -AU], texture="earth_hd.jpg",
init_velocity=[0, self.EARTH_INIT_VELOCITY, 0],
rotation_speed=0.15,
size_scale=1).set_light_disable(True)
# 水星轨道半径
self.mercury_radius = 0.384 * AU
......@@ -82,7 +83,10 @@ class EarthOrbitStoppedSim(UniverseSimScenes):
def on_ready(self):
# 运行前触发一次
# 应用的时间缩放越小,视频更近顺滑(低速运行比较重要)
camera.clip_plane_near = 0.01
camera.clip_plane_far = 50000
application.time_scale = 0.00001
# FOV是摄像机的视场角,即Field of view(FOV),它的大小决定了摄像机的视野范围。
camera.fov = 50
self.text_panel = create_text_panel(font="fonts/DroidSansFallback.ttf", font_scale=1.3)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册