From 571f216cfcdeb82e962fb18df5ba35000790ea34 Mon Sep 17 00:00:00 2001 From: march3 Date: Fri, 17 Mar 2023 21:29:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=AA=E9=98=B3=E7=B3=BB=E4=B8=89=E4=BD=93?= =?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 --- simulators/views/ursina_view.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/simulators/views/ursina_view.py b/simulators/views/ursina_view.py index afa7e39..dc291c2 100644 --- a/simulators/views/ursina_view.py +++ b/simulators/views/ursina_view.py @@ -200,8 +200,11 @@ class Planet(Entity): return trail def turn(self): - - self.scale = self.init_scale * UrsinaConfig.body_size_factor + if hasattr(self.body_view.body, "torus_stars"): + # 星环小天体群(主要模拟小行星群,非一个天体)不受 body_size_factor 影响 + self.scale = self.init_scale + else: + self.scale = self.init_scale * UrsinaConfig.body_size_factor pos = self.body_view.position * UrsinaConfig.SCALE_FACTOR if self.body_view.body.parent is None: -- GitLab