Finalize buggy model

soundtrack
Ensar Sarajčić 2021-11-09 22:56:16 +01:00
parent c5d7850241
commit 3e73f8404e
5 changed files with 9 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -153,5 +153,5 @@ func _generate_engine_sound(rpm_factor):
var factor = rpm_factor var factor = rpm_factor
while to_fill > 0: while to_fill > 0:
engine_sound_playback.push_frame(Vector2(1.0, 1.0) * factor) engine_sound_playback.push_frame(Vector2(1.0, 1.0) * factor)
factor += cos(factor) * sin(factor) factor += cos(factor) * sin(factor) * (1 + to_fill % 2)
to_fill -= 1 to_fill -= 1

View File

@ -31,6 +31,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.23227, 0 )
shape = SubResource( 1 ) shape = SubResource( 1 )
[node name="front_right" parent="." index="4"] [node name="front_right" parent="." index="4"]
transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, -0.950754, 0.503756, 1.41438 )
use_as_traction = true use_as_traction = true
use_as_steering = true use_as_steering = true
wheel_radius = 0.6 wheel_radius = 0.6
@ -39,6 +40,9 @@ wheel_friction_slip = 1.75
suspension_travel = 1.0 suspension_travel = 1.0
suspension_stiffness = 5.95 suspension_stiffness = 5.95
[node name="front_right" parent="front_right" index="0"]
transform = Transform( -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
[node name="rear_left" parent="." index="5"] [node name="rear_left" parent="." index="5"]
use_as_traction = true use_as_traction = true
wheel_radius = 0.6 wheel_radius = 0.6
@ -48,6 +52,7 @@ suspension_travel = 1.0
suspension_stiffness = 5.95 suspension_stiffness = 5.95
[node name="rear_right" parent="." index="6"] [node name="rear_right" parent="." index="6"]
transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, -0.950755, 0.503756, -1.41438 )
use_as_traction = true use_as_traction = true
wheel_radius = 0.6 wheel_radius = 0.6
wheel_rest_length = 0.4 wheel_rest_length = 0.4
@ -55,6 +60,9 @@ wheel_friction_slip = 1.8
suspension_travel = 1.0 suspension_travel = 1.0
suspension_stiffness = 5.95 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"] [node name="Info" type="Label" parent="." index="7"]
margin_right = 40.0 margin_right = 40.0
margin_bottom = 14.0 margin_bottom = 14.0