Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Python_超人
宇宙模拟器
提交
ba7210e8
宇宙模拟器
项目概览
Python_超人
/
宇宙模拟器
通知
19
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
宇宙模拟器
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ba7210e8
编写于
7月 07, 2023
作者:
三月三net
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Python超人-宇宙模拟器
上级
1ea09c7e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
15 deletion
+15
-15
sim_lab/speed_of_light_3d_speed.py
sim_lab/speed_of_light_3d_speed.py
+15
-15
未找到文件。
sim_lab/speed_of_light_3d_speed.py
浏览文件 @
ba7210e8
...
...
@@ -129,17 +129,17 @@ def get_acc_control_info():
# [01:31:11] 到达 [海王星] 12.2898 AU
# [01:40:23] 到达 [冥王星] 13.0516 AU
distance_list
=
[
0.7736
,
1.0845
,
1.4816
,
1.6587
,
2.2803
,
4.2629
,
7.1386
,
9.6171
,
12.2898
,
13.0516
]
distance_list
=
[
0.7036
,
1.0045
,
1.4016
,
1.6087
,
2.2403
,
4.0
0
29
,
# 木星
6.9
0
86
,
9.4171
,
12.2098
,
12.9516
]
distance_list
=
[
0.7036
,
1.0045
,
1.4016
,
1.6087
,
2.2403
,
4.0
8
29
,
# 木星
6.9
9
86
,
9.4171
,
12.2098
,
12.9516
]
acc_list
=
[(
30000
,
-
66000
),
# 水星
(
28000
,
-
65000
),
# 金星
(
28000
,
-
65000
),
# 地球
(
0
,
0
),
# 月球
(
45000
,
-
160000
),
# 火星
(
32000
,
-
60
000
),
# 木星
(
80000
,
-
50
000
),
# 土星
(
50000
,
-
5
0000
),
# 天王星
(
50000
,
-
4
0000
),
# 海王星
(
26000
,
-
65
000
),
# 木星
(
180000
,
-
75
000
),
# 土星
(
250000
,
-
10
0000
),
# 天王星
(
250000
,
-
10
0000
),
# 海王星
(
100000
,
-
206000
)
# 冥王星
]
acc_control_info
.
clear
()
...
...
@@ -168,7 +168,7 @@ def on_timer_changed(time_data: TimeData):
if
distance
>
13.2
:
exit
(
0
)
MAX_SPEED
=
LIGHT_SPEED
*
1
0
MAX_SPEED
=
LIGHT_SPEED
*
1
5
MIN_SPEED
=
LIGHT_SPEED
acc_val
=
0
for
acc_vals
in
init
.
light_ship
.
acc_control_info
:
...
...
@@ -217,17 +217,17 @@ UrsinaEvent.on_before_evolving_subscription(on_before_evolving)
def
body_arrived
(
body
):
# # 到达每个行星都会触发,对光速飞船进行加速,超光速前进(使用未来曲率引擎技术)
if
body
.
name
==
"金星"
:
# 到达金星,木星开始调整位置
jupiter
.
acceleration
[
0
]
=
-
5
00
jupiter
.
acceleration
[
1
]
=
-
205
jupiter
.
acceleration
[
0
]
=
-
3
00
jupiter
.
acceleration
[
1
]
=
-
150
elif
body
.
name
==
"火星"
:
# 到达火星,土星开始调整位置
saturn
.
acceleration
[
0
]
=
-
5
00
saturn
.
acceleration
[
1
]
=
-
205
saturn
.
acceleration
[
0
]
=
-
8
00
saturn
.
acceleration
[
1
]
=
-
300
elif
body
.
name
==
"木星"
:
# 到达木星,天王星开始调整位置
uranus
.
acceleration
[
0
]
=
-
15
0
uranus
.
acceleration
[
1
]
=
-
1
05
uranus
.
acceleration
[
0
]
=
-
30
0
uranus
.
acceleration
[
1
]
=
-
2
05
elif
body
.
name
==
"土星"
:
# 到达土星,海王星开始调整位置
neptune
.
acceleration
[
0
]
=
-
15
0
neptune
.
acceleration
[
1
]
=
-
1
05
neptune
.
acceleration
[
0
]
=
-
30
0
neptune
.
acceleration
[
1
]
=
-
2
05
# saturn, uranus, neptune
# elif body.name == "土星": # 到达土星,加速前进,并进行攀升
# light_ship.acceleration = [-150, 100, 0]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录