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

Python超人-宇宙模拟器

上级 c10acbec
...@@ -11,7 +11,7 @@ import math ...@@ -11,7 +11,7 @@ import math
from bodies import Earth, Moon from bodies import Earth, Moon
from common.consts import SECONDS_PER_HOUR from common.consts import SECONDS_PER_HOUR
from objs import Satellite from objs import Satellite
from sim_scenes.func import ursina_run, camera_look_at from sim_scenes.func import ursina_run, camera_look_at, create_sphere_sky
from simulators.ursina.entities.body_timer import TimeData, BodyTimer from simulators.ursina.entities.body_timer import TimeData, BodyTimer
from simulators.ursina.ursina_event import UrsinaEvent from simulators.ursina.ursina_event import UrsinaEvent
from simulators.ursina.ursina_mesh import create_connecting_lines from simulators.ursina.ursina_mesh import create_connecting_lines
...@@ -68,6 +68,7 @@ if __name__ == '__main__': ...@@ -68,6 +68,7 @@ if __name__ == '__main__':
# 摄像机看向地球 # 摄像机看向地球
camera_look_at(earth) camera_look_at(earth)
camera.rotation_y = -90 camera.rotation_y = -90
create_sphere_sky(scale=8000)
def on_timer_changed(time_data: TimeData): def on_timer_changed(time_data: TimeData):
...@@ -83,7 +84,7 @@ if __name__ == '__main__': ...@@ -83,7 +84,7 @@ if __name__ == '__main__':
[satelliteL4, satelliteL1], [satelliteL5, satelliteL1], [satelliteL4, satelliteL1], [satelliteL5, satelliteL1],
[satelliteL4, satelliteL2], [satelliteL5, satelliteL2], [satelliteL4, satelliteL2], [satelliteL5, satelliteL2],
[satelliteL4, satelliteL3], [satelliteL5, satelliteL3], [satelliteL4, satelliteL3], [satelliteL5, satelliteL3],
]) ],alpha=0.5)
# 订阅事件后,上面的函数功能才会起作用 # 订阅事件后,上面的函数功能才会起作用
...@@ -102,5 +103,6 @@ if __name__ == '__main__': ...@@ -102,5 +103,6 @@ if __name__ == '__main__':
# position=(-300000, 1500000, -100), # position=(-300000, 1500000, -100),
position=(0, 1500000, 0), position=(0, 1500000, 0),
show_timer=True, show_timer=True,
cosmic_bg='',
# show_trail=True # show_trail=True
) )
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册