Clean up debug info

soundtrack
Ensar Sarajčić 2021-11-14 23:00:12 +01:00
parent 2065979de9
commit 783a21325f
3 changed files with 12 additions and 27 deletions

View File

@ -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 )

View File

@ -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:

View File

@ -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 )