From 783a21325f2fec6d8f3fa6c67686c520c5349add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Sun, 14 Nov 2021 23:00:12 +0100 Subject: [PATCH] Clean up debug info --- vehicles/beetlecar.tscn | 19 ++++++------------- vehicles/buggy.gd | 1 - vehicles/buggy.tscn | 19 ++++++------------- 3 files changed, 12 insertions(+), 27 deletions(-) diff --git a/vehicles/beetlecar.tscn b/vehicles/beetlecar.tscn index 57f976f..62bbd08 100644 --- a/vehicles/beetlecar.tscn +++ b/vehicles/beetlecar.tscn @@ -92,33 +92,26 @@ transform = Transform( -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.843709, 0.205449 ) shape = SubResource( 1 ) -[node name="Info" type="Label" parent="." index="7"] -margin_right = 40.0 -margin_bottom = 14.0 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="engine_sound_player" type="AudioStreamPlayer3D" parent="." index="8"] +[node name="engine_sound_player" type="AudioStreamPlayer3D" parent="." index="7"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.14201, 0.968668 ) stream = SubResource( 2 ) unit_db = 14.0 -[node name="Smoke" type="Particles" parent="." index="9"] +[node name="Smoke" type="Particles" parent="." index="8"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.31514, 0.383062, -1.51247 ) amount = 12 local_coords = false process_material = SubResource( 7 ) draw_pass_1 = SubResource( 8 ) -[node name="rr_tire_smoke" parent="." index="10" instance=ExtResource( 3 )] +[node name="rr_tire_smoke" parent="." index="9" instance=ExtResource( 3 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.621508, 0.0502438, -0.83483 ) -[node name="rl_tire_smoke" parent="." index="11" instance=ExtResource( 3 )] +[node name="rl_tire_smoke" parent="." index="10" instance=ExtResource( 3 )] transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, 0.621506, 0.0502438, -0.83483 ) -[node name="fr_tire_smoke" parent="." index="12" instance=ExtResource( 3 )] +[node name="fr_tire_smoke" parent="." index="11" instance=ExtResource( 3 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.621508, 0.0502438, 1.19336 ) -[node name="fl_tire_smoke" parent="." index="13" instance=ExtResource( 3 )] +[node name="fl_tire_smoke" parent="." index="12" instance=ExtResource( 3 )] transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, 0.621506, 0.0502438, 1.19336 ) diff --git a/vehicles/buggy.gd b/vehicles/buggy.gd index de27a4b..94fd12b 100644 --- a/vehicles/buggy.gd +++ b/vehicles/buggy.gd @@ -141,7 +141,6 @@ func _physics_process(delta: float): var speed = wheel_rpm * 2.0 * PI * rrwheel.wheel_radius / 60.0 * 3600.0 / 1000.0 emit_signal("speed_updated", speed / EXPECTED_MAX_SPEED) emit_signal("rpm_updated", rpm_factor) - $Info.text = "Gear: %d, KPH: %.0f, RPM: %.0f, WheelRPM: %.0f, FinalRPM: %.0f, TRPM: %.0f, Engine force: %.0f" % [ gear, speed, rpm, wheel_rpm, final_rpm, transmission_rpm, engine_force ] var steering_input = Input.get_action_strength("steer_left") - Input.get_action_strength("steer_right") if abs(steering_input) < 0.05: diff --git a/vehicles/buggy.tscn b/vehicles/buggy.tscn index ae6f36b..1e77863 100644 --- a/vehicles/buggy.tscn +++ b/vehicles/buggy.tscn @@ -94,32 +94,25 @@ suspension_stiffness = 5.95 [node name="rear_right" parent="rear_right" index="0"] transform = Transform( -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) -[node name="Info" type="Label" parent="." index="7"] -margin_right = 40.0 -margin_bottom = 14.0 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="engine_sound_player" type="AudioStreamPlayer3D" parent="." index="8"] +[node name="engine_sound_player" type="AudioStreamPlayer3D" parent="." index="7"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.14201, 0.968668 ) stream = SubResource( 3 ) unit_db = 14.0 -[node name="Smoke" type="Particles" parent="." index="9"] +[node name="Smoke" type="Particles" parent="." index="8"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.855953, -1.87797 ) local_coords = false process_material = SubResource( 5 ) draw_pass_1 = SubResource( 7 ) -[node name="fl_tire_smoke" parent="." index="10" instance=ExtResource( 2 )] +[node name="fl_tire_smoke" parent="." index="9" instance=ExtResource( 2 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.950754, -0.0380455, 1.41438 ) -[node name="fr_tire_smoke" parent="." index="11" instance=ExtResource( 2 )] +[node name="fr_tire_smoke" parent="." index="10" instance=ExtResource( 2 )] transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, -0.950754, -0.038045, 1.41438 ) -[node name="rl_tire_smoke" parent="." index="12" instance=ExtResource( 2 )] +[node name="rl_tire_smoke" parent="." index="11" instance=ExtResource( 2 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.950753, -0.0380455, -1.41438 ) -[node name="rr_tire_smoke" parent="." index="13" instance=ExtResource( 2 )] +[node name="rr_tire_smoke" parent="." index="12" instance=ExtResource( 2 )] transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, -0.950755, -0.038045, -1.41438 )