Tweak bugmobile to make it more driveable

soundtrack
Ensar Sarajčić 2021-11-20 19:11:39 +01:00
parent 6b7412a3ed
commit 04414ac90d
1 changed files with 41 additions and 23 deletions

View File

@ -5,13 +5,14 @@
[ext_resource path="res://vehicles/vehicle.gd" type="Script" id=3]
[sub_resource type="Curve" id=18]
_data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.103774, 0.493182 ), 0.0, 0.0, 0, 0, Vector2( 0.339623, 0.629545 ), 0.0, 0.0, 0, 0, Vector2( 0.806604, 0.989773 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
_data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.179245, 0.584091 ), -0.306612, -0.306612, 0, 0, Vector2( 0.603774, 0.954545 ), 0.0, 0.0, 0, 0, Vector2( 0.806604, 0.989773 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="Curve" id=19]
_data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.127358, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.174528, 0.65 ), 0.0, 0.0, 0, 0, Vector2( 0.212264, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.353774, 0.35 ), 0.0, 0.0, 0, 0, Vector2( 0.363208, 0.968182 ), 0.0, 0.0, 0, 0, Vector2( 0.485849, 0.313636 ), 0.0, 0.0, 0, 0, Vector2( 0.627358, 0.140909 ), 0.0, 0.0, 0, 0, Vector2( 0.721698, 0.259091 ), 0.0, 0.0, 0, 0, Vector2( 0.783019, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.872642, 0.794318 ), 0.0, 0.0, 0, 0, Vector2( 0.915094, 0.248864 ), 0.0, 0.0, 0, 0, Vector2( 0.933962, 0.5125 ), 0.0, 0.0, 0, 0, Vector2( 1, 0.476136 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="BoxShape" id=11]
extents = Vector3( 0.156484, 0.596214, 1.89026 )
[sub_resource type="CapsuleShape" id=20]
radius = 0.274866
height = 3.59516
[sub_resource type="AudioStreamGenerator" id=12]
mix_rate = 5500.0
@ -51,11 +52,12 @@ rings = 3
[node name="bugmobile" groups=["car"] instance=ExtResource( 2 )]
mass = 600.0
script = ExtResource( 3 )
MAX_ENGINE_FORCE = 400.0
MAX_BRAKE_FORCE = 80.0
THROTTLE_POWER = 7500.0
BASE_ENGINE_PITCH = 0.76
EXPECTED_MAX_SPEED = 260.0
max_steer_angle = 20.0
speed_steer_angle = 9.0
max_engine_force = 280.0
max_brake_force = 95.0
throttle_power = 8000.0
base_engine_pitch = 0.65
gear_ratios = [ 3.5, 2.95, 2.64, 2.0, 1.67, 1.42 ]
final_drive = 4.36
max_rpm = 9000.0
@ -64,35 +66,51 @@ sound_curve = SubResource( 19 )
[node name="rear_left" parent="." index="0"]
use_as_traction = true
wheel_radius = 0.55
wheel_rest_length = 0.6
wheel_friction_slip = 7.0
suspension_travel = 0.8
wheel_radius = 0.52
wheel_rest_length = 0.4
wheel_friction_slip = 8.0
suspension_travel = 0.4
suspension_stiffness = 9.0
suspension_max_force = 7000.0
damping_compression = 0.87
damping_relaxation = 0.9
[node name="front_left" parent="." index="2"]
use_as_steering = true
wheel_radius = 0.35
wheel_rest_length = 0.7
wheel_friction_slip = 5.0
suspension_travel = 0.6
wheel_rest_length = 0.36
wheel_friction_slip = 7.0
suspension_travel = 0.36
suspension_stiffness = 12.0
suspension_max_force = 7000.0
damping_compression = 0.9
damping_relaxation = 0.92
[node name="front_right" parent="." index="4"]
use_as_steering = true
wheel_radius = 0.35
wheel_rest_length = 0.7
wheel_friction_slip = 5.0
suspension_travel = 0.6
wheel_rest_length = 0.36
wheel_friction_slip = 7.0
suspension_travel = 0.36
suspension_stiffness = 12.0
suspension_max_force = 7000.0
damping_compression = 0.9
damping_relaxation = 0.92
[node name="rear_right" parent="." index="5"]
use_as_traction = true
wheel_radius = 0.55
wheel_rest_length = 0.6
wheel_friction_slip = 7.0
suspension_travel = 0.8
wheel_radius = 0.52
wheel_rest_length = 0.4
wheel_friction_slip = 8.0
suspension_travel = 0.4
suspension_stiffness = 9.0
suspension_max_force = 7000.0
damping_compression = 0.87
damping_relaxation = 0.9
[node name="CollisionShape" type="CollisionShape" parent="." index="6"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.771473, -0.625139 )
shape = SubResource( 11 )
shape = SubResource( 20 )
[node name="engine_sound_player" type="AudioStreamPlayer3D" parent="." index="7"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.791119, -2.27857 )