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

Python超人-宇宙模拟器

上级 6dcb034b
...@@ -117,7 +117,7 @@ def transformed_mars_ani(transformed_texture=None, texture=None, camera3d=False, ...@@ -117,7 +117,7 @@ def transformed_mars_ani(transformed_texture=None, texture=None, camera3d=False,
def on_ready(): def on_ready():
if bg_texture is not None: if bg_texture is not None:
sky = create_sphere_sky(texture=bg_texture, scale=10000, rotation_x=10, rotation_y=180, rotation_z=-70) sky = create_sphere_sky(texture=bg_texture, scale=1000, rotation_x=10, rotation_y=180, rotation_z=-70)
if bg_texture_rotation: if bg_texture_rotation:
def sky_rotation(): def sky_rotation():
...@@ -136,7 +136,7 @@ def transformed_mars_ani(transformed_texture=None, texture=None, camera3d=False, ...@@ -136,7 +136,7 @@ def transformed_mars_ani(transformed_texture=None, texture=None, camera3d=False,
application.time_scale = 0.001 application.time_scale = 0.001
camera.clip_plane_near = 0.001 camera.clip_plane_near = 0.001
camera.clip_plane_far = 20000 camera.clip_plane_far = 10000
if append_space_station: if append_space_station:
def update(): def update():
...@@ -145,7 +145,7 @@ def transformed_mars_ani(transformed_texture=None, texture=None, camera3d=False, ...@@ -145,7 +145,7 @@ def transformed_mars_ani(transformed_texture=None, texture=None, camera3d=False,
space_station.planet.rotation_z += 0.005 * space_station.dt_scale space_station.planet.rotation_z += 0.005 * space_station.dt_scale
space_station.planet.position += Vec3(0, 0, 0.00000005 * space_station.dt_scale) space_station.planet.position += Vec3(0, 0, 0.00000005 * space_station.dt_scale)
d = distance(space_station.planet, mars.planet) / UrsinaConfig.SCALE_FACTOR d = distance(space_station.planet, mars.planet) / UrsinaConfig.SCALE_FACTOR
if d < mars.radius * 5: if d < mars.radius * 2:
space_station.planet.scale *= pow(0.999, 72 / space_station.dt_scale) space_station.planet.scale *= pow(0.999, 72 / space_station.dt_scale)
if d < mars.radius * 1.01: if d < mars.radius * 1.01:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册