bugged-racing/vehicles/bugmobile.tscn

181 lines
7.0 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=18 format=2]
2021-11-16 17:48:41 +00:00
[ext_resource path="res://vehicles/tire_smoke.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/bugmobile.glb" type="PackedScene" id=2]
2021-11-18 19:48:47 +00:00
[ext_resource path="res://vehicles/vehicle.gd" type="Script" id=3]
[ext_resource path="res://vehicles/steering_controller.gd" type="Script" id=4]
[ext_resource path="res://vehicles/pedal.gd" type="Script" id=5]
[ext_resource path="res://vehicles/meter.gd" type="Script" id=6]
2021-11-16 17:48:41 +00:00
[sub_resource type="Curve" id=18]
2021-11-21 22:08:52 +00:00
_data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.179245, 0.584091 ), 4.91185, 4.91185, 0, 0, Vector2( 0.603774, 0.954545 ), 6.05975, 6.05975, 0, 0, Vector2( 0.806604, 0.989773 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
2021-11-16 17:48:41 +00:00
[sub_resource type="Curve" id=19]
2021-11-21 22:08:52 +00:00
_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.745283, 0.623864 ), 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 ), 0.0, 0.0, 0, 0 ]
2021-11-16 17:48:41 +00:00
[sub_resource type="CapsuleShape" id=20]
radius = 0.274866
2021-11-22 19:05:57 +00:00
height = 2.75974
2021-11-16 17:48:41 +00:00
[sub_resource type="AudioStreamGenerator" id=12]
mix_rate = 5500.0
[sub_resource type="Gradient" id=13]
offsets = PoolRealArray( 0, 0.5, 1 )
colors = PoolColorArray( 0, 0.278431, 0.270588, 1, 0.356863, 0.764706, 0.670588, 1, 1, 1, 1, 1 )
[sub_resource type="GradientTexture" id=14]
gradient = SubResource( 13 )
[sub_resource type="Curve" id=15]
_data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0.205682 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=9]
curve = SubResource( 15 )
[sub_resource type="ParticlesMaterial" id=16]
direction = Vector3( 0, 0, -1 )
gravity = Vector3( 0, 0.2, 0 )
initial_velocity = 0.8
scale = 0.2
scale_random = 0.25
scale_curve = SubResource( 9 )
color = Color( 0.521569, 0.521569, 0.521569, 0.435294 )
color_ramp = SubResource( 14 )
[sub_resource type="SpatialMaterial" id=10]
flags_transparent = true
vertex_color_use_as_albedo = true
[sub_resource type="SphereMesh" id=17]
material = SubResource( 10 )
radial_segments = 4
rings = 3
2021-11-17 19:10:51 +00:00
[node name="bugmobile" groups=["car"] instance=ExtResource( 2 )]
2022-01-24 14:14:49 +00:00
mass = 1900.0
2021-11-16 17:48:41 +00:00
script = ExtResource( 3 )
2022-01-24 14:14:49 +00:00
max_engine_force = 1400.0
max_brake_force = 230.0
throttle_power = 8000.0
max_rpm_loss_ps = 2200.0
base_engine_pitch = 0.65
2022-01-24 14:33:00 +00:00
drag_factor = 0.85
downforce_factor = 1.8
2021-11-16 17:48:41 +00:00
gear_ratios = [ 3.5, 2.95, 2.64, 2.0, 1.67, 1.42 ]
final_drive = 4.36
max_rpm = 9000.0
power_curve = SubResource( 18 )
sound_curve = SubResource( 19 )
[node name="rear_left" parent="." index="0"]
use_as_traction = true
wheel_radius = 0.52
2021-11-22 19:05:57 +00:00
wheel_rest_length = 0.47
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
2021-11-16 17:48:41 +00:00
[node name="front_left" parent="." index="2"]
use_as_steering = true
wheel_radius = 0.35
2021-11-22 19:05:57 +00:00
wheel_rest_length = 0.45
wheel_friction_slip = 7.0
2022-01-24 14:33:00 +00:00
suspension_travel = 0.3
suspension_stiffness = 12.0
2022-01-24 14:33:00 +00:00
suspension_max_force = 9000.0
damping_compression = 0.9
damping_relaxation = 0.92
2021-11-16 17:48:41 +00:00
[node name="brake_pedal" parent="chassis/cockpit" index="0"]
script = ExtResource( 5 )
[node name="clutch_pedal" parent="chassis/cockpit" index="1"]
script = ExtResource( 5 )
[node name="gas_pedal" parent="chassis/cockpit" index="2"]
script = ExtResource( 5 )
[node name="steering_controller" parent="chassis/cockpit" index="3"]
script = ExtResource( 4 )
[node name="rpm_meter" parent="chassis/cockpit/steering_controller" index="0"]
script = ExtResource( 6 )
needle_path = NodePath("rpm_needle")
[node name="speed_meter" parent="chassis/cockpit/steering_controller" index="1"]
script = ExtResource( 6 )
needle_path = NodePath("speed_needle")
2021-11-16 17:48:41 +00:00
[node name="front_right" parent="." index="4"]
use_as_steering = true
wheel_radius = 0.35
2021-11-22 19:05:57 +00:00
wheel_rest_length = 0.45
wheel_friction_slip = 7.0
2022-01-24 14:33:00 +00:00
suspension_travel = 0.3
suspension_stiffness = 12.0
2022-01-24 14:33:00 +00:00
suspension_max_force = 9000.0
damping_compression = 0.9
damping_relaxation = 0.92
2021-11-16 17:48:41 +00:00
[node name="rear_right" parent="." index="5"]
use_as_traction = true
wheel_radius = 0.52
2021-11-22 19:05:57 +00:00
wheel_rest_length = 0.47
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
2021-11-16 17:48:41 +00:00
[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( 20 )
2021-11-16 17:48:41 +00:00
[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 )
stream = SubResource( 12 )
unit_db = 14.0
2021-11-17 22:23:12 +00:00
bus = "Sound"
2021-11-16 17:48:41 +00:00
[node name="Smoke" type="Particles" parent="." index="8"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.686323, -2.72067 )
local_coords = false
process_material = SubResource( 16 )
draw_pass_1 = SubResource( 17 )
[node name="fl_tire_smoke" parent="." index="9" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.377735, 0.0239591, 0.971391 )
[node name="fr_tire_smoke" parent="." index="10" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, -0.338267, -0.00527258, 0.997852 )
[node name="rl_tire_smoke" parent="." index="11" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.18159, 0.117865, -1.93644 )
[node name="rr_tire_smoke" parent="." index="12" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, -1.02536, 0.101852, -1.93766 )
2022-01-19 10:39:45 +00:00
[node name="cockpit" type="Position3D" parent="." index="13"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.03657, 0 )
2022-01-19 10:39:45 +00:00
[node name="hood" type="Position3D" parent="." index="14"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.00873, 0.756477 )
[node name="bumper" type="Position3D" parent="." index="15"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.605405, 1.5324 )
[node name="static_follow" type="Position3D" parent="." index="16"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.88984, -4.78212 )
[connection signal="brake_updated" from="." to="chassis/cockpit/brake_pedal" method="_on_value_updated"]
[connection signal="clutch_updated" from="." to="chassis/cockpit/clutch_pedal" method="_on_value_updated"]
[connection signal="rpm_updated" from="." to="chassis/cockpit/steering_controller/rpm_meter" method="_on_value_updated"]
[connection signal="speed_updated" from="." to="chassis/cockpit/steering_controller/speed_meter" method="_on_value_updated"]
[connection signal="steering_updated" from="." to="chassis/cockpit/steering_controller" method="_on_steering_updated"]
[connection signal="throttle_updated" from="." to="chassis/cockpit/gas_pedal" method="_on_value_updated"]