From 04e0b284b52e4e02f60ce734b9db3a15564fe741 Mon Sep 17 00:00:00 2001 From: march3 Date: Sun, 30 Apr 2023 19:14:02 +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 --- objs/football.py | 3 ++- objs/satellite.py | 2 +- simulators/ursina/entities/planet.py | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/objs/football.py b/objs/football.py index 0610813..9318e8f 100644 --- a/objs/football.py +++ b/objs/football.py @@ -19,7 +19,7 @@ class Football(Obj): init_velocity=[0, 0, 0], texture="football.jpg", size_scale=1.0, distance_scale=1.0, ignore_mass=False, density=1e3, color=(7, 0, 162), - trail_color=None, show_name=False, + trail_color=None, trail_scale_factor=0.2, show_name=False, parent=None, gravity_only_for=[]): params = { "name": name, @@ -33,6 +33,7 @@ class Football(Obj): "distance_scale": distance_scale, "ignore_mass": ignore_mass, "trail_color": trail_color, + "trail_scale_factor": trail_scale_factor, "show_name": show_name, "parent": parent, "gravity_only_for": gravity_only_for, diff --git a/objs/satellite.py b/objs/satellite.py index d3e8162..76f733f 100644 --- a/objs/satellite.py +++ b/objs/satellite.py @@ -20,7 +20,7 @@ class Satellite(Obj): texture="satellite.png", size_scale=1.0, distance_scale=1.0, ignore_mass=False, density=1e3, color=(7, 0, 162), trail_color=(255, 255, 255), show_name=False, - trail_scale_factor=5.0, model="satellite.obj", + trail_scale_factor=1.0, model="satellite.obj", parent=None, gravity_only_for=[]): params = { "name": name, diff --git a/simulators/ursina/entities/planet.py b/simulators/ursina/entities/planet.py index 2329083..9fc45da 100644 --- a/simulators/ursina/entities/planet.py +++ b/simulators/ursina/entities/planet.py @@ -303,7 +303,8 @@ class Planet(Entity): if self.hovered: if key == 'left mouse down': # print(key, self) - self.show_name() + # self.show_name() + pass def show_name(self): if hasattr(self, "label_name"): -- GitLab