From 94d828c3836fe63d8a58240dd37781b591f70568 Mon Sep 17 00:00:00 2001 From: march3 Date: Thu, 29 Jun 2023 11:15:24 +0800 Subject: [PATCH] =?UTF-8?q?Python=E8=B6=85=E4=BA=BA-=E5=AE=87=E5=AE=99?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sim_scenes/science/jupiter_protects_earth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_scenes/science/jupiter_protects_earth.py b/sim_scenes/science/jupiter_protects_earth.py index 1ad96c4..d5d66b8 100644 --- a/sim_scenes/science/jupiter_protects_earth.py +++ b/sim_scenes/science/jupiter_protects_earth.py @@ -47,7 +47,7 @@ class JupiterProtectsEarthSim: def random_pos_vel(self): # 随机生成石头的位置和初始速度信息 - radius = calculate_distance(self.jupiter.position, self.sun.position) * 2 + radius = calculate_distance(self.jupiter.position, self.sun.position) * 1.5 x = radius * math.cos(random.uniform(0, 2 * math.pi)) * (random.randint(100, 150) / 100) z = radius * math.sin(random.uniform(0, 2 * math.pi)) * (random.randint(100, 150) / 100) sun_pos = self.sun.position -- GitLab