bugged-racing/vehicles/buggy.tscn

142 lines
4.9 KiB
Plaintext
Raw Permalink Normal View History

2021-11-13 21:22:07 +00:00
[gd_scene load_steps=13 format=2]
2021-11-05 22:11:26 +00:00
[ext_resource path="res://assets/basic_buggy.glb" type="PackedScene" id=1]
2021-11-13 21:22:07 +00:00
[ext_resource path="res://vehicles/tire_smoke.tscn" type="PackedScene" id=2]
2021-11-18 19:48:47 +00:00
[ext_resource path="res://vehicles/vehicle.gd" type="Script" id=3]
2021-11-05 22:11:26 +00:00
[sub_resource type="Curve" id=2]
2021-11-21 22:08:52 +00:00
_data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.0660377, 0.243255 ), 0.0, 0.0, 0, 0, Vector2( 0.25, 0.563636 ), 4.02975, 4.02975, 0, 0, Vector2( 0.518868, 0.761364 ), 3.22818, 3.22818, 0, 0, Vector2( 0.849057, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
2021-11-13 11:44:07 +00:00
[sub_resource type="Curve" id=4]
_data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.0849057, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.15566, 0.746591 ), 0.0, 0.0, 0, 0, Vector2( 0.349057, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.382075, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.400943, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.438679, 0 ), 0.0, 0.0, 0, 0, Vector2( 1, 1 ), 0.0, 0.0, 0, 0 ]
2021-11-21 22:45:44 +00:00
[sub_resource type="CapsuleShape" id=11]
radius = 0.452181
height = 2.78888
2021-11-05 22:11:26 +00:00
2021-11-08 18:53:23 +00:00
[sub_resource type="AudioStreamGenerator" id=3]
mix_rate = 5500.0
2021-11-13 21:22:07 +00:00
[sub_resource type="Curve" id=8]
_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( 8 )
[sub_resource type="ParticlesMaterial" id=5]
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 )
[sub_resource type="SpatialMaterial" id=10]
flags_transparent = true
vertex_color_use_as_albedo = true
[sub_resource type="SphereMesh" id=7]
material = SubResource( 10 )
radial_segments = 4
rings = 3
2021-11-17 19:10:51 +00:00
[node name="buggy" groups=["car"] instance=ExtResource( 1 )]
2021-11-20 18:23:07 +00:00
mass = 400.0
2021-11-05 22:11:26 +00:00
script = ExtResource( 3 )
2021-11-20 18:23:07 +00:00
max_steer_angle = 30.0
speed_steer_angle = 14.0
max_steer_speed = 120.0
max_engine_force = 160.0
max_brake_force = 80.0
throttle_power = 10000.0
max_rpm_loss_ps = 4000.0
base_engine_pitch = 0.45
2021-11-22 17:36:13 +00:00
gear_ratios = [ 3.8, 2.7, 2.2, 1.75, 1.4, 1.2 ]
power_curve = SubResource( 2 )
2021-11-13 11:44:07 +00:00
sound_curve = SubResource( 4 )
2021-11-21 22:08:52 +00:00
automatic_gear_up_threshold = 0.85
automatic_gear_down_threshold = 0.4
2021-11-05 22:11:26 +00:00
2021-11-09 17:50:55 +00:00
[node name="front_left" parent="." index="1"]
2021-11-05 22:11:26 +00:00
use_as_traction = true
use_as_steering = true
2021-11-06 22:08:55 +00:00
wheel_radius = 0.6
2021-11-20 18:18:28 +00:00
wheel_rest_length = 0.68
wheel_friction_slip = 2.0
suspension_travel = 1.2
suspension_stiffness = 4.5
2021-11-20 18:23:07 +00:00
suspension_max_force = 14000.0
2021-11-20 18:18:28 +00:00
damping_compression = 0.9
damping_relaxation = 0.94
2021-11-05 22:11:26 +00:00
2021-11-06 22:08:55 +00:00
[node name="CollisionShape" type="CollisionShape" parent="." index="2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.23227, 0 )
2021-11-21 22:45:44 +00:00
shape = SubResource( 11 )
2021-11-06 22:08:55 +00:00
2021-11-09 17:50:55 +00:00
[node name="front_right" parent="." index="4"]
2021-11-09 21:56:16 +00:00
transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, -0.950754, 0.503756, 1.41438 )
2021-11-05 22:11:26 +00:00
use_as_traction = true
2021-11-08 21:59:13 +00:00
use_as_steering = true
2021-11-06 22:08:55 +00:00
wheel_radius = 0.6
2021-11-20 18:18:28 +00:00
wheel_rest_length = 0.68
wheel_friction_slip = 2.0
suspension_travel = 1.2
suspension_stiffness = 4.5
2021-11-20 18:23:07 +00:00
suspension_max_force = 14000.0
2021-11-20 18:18:28 +00:00
damping_compression = 0.9
damping_relaxation = 0.94
2021-11-05 22:11:26 +00:00
2021-11-09 21:56:16 +00:00
[node name="front_right" parent="front_right" index="0"]
transform = Transform( -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
2021-11-08 21:59:13 +00:00
[node name="rear_left" parent="." index="5"]
2021-11-05 22:11:26 +00:00
use_as_traction = true
2021-11-06 22:08:55 +00:00
wheel_radius = 0.6
2021-11-20 18:18:28 +00:00
wheel_rest_length = 0.68
2021-11-21 22:08:52 +00:00
wheel_friction_slip = 1.9
2021-11-20 18:18:28 +00:00
suspension_travel = 1.2
suspension_stiffness = 4.5
2021-11-20 18:23:07 +00:00
suspension_max_force = 14000.0
2021-11-20 18:18:28 +00:00
damping_compression = 0.9
damping_relaxation = 0.94
2021-11-05 22:11:26 +00:00
2021-11-06 22:08:55 +00:00
[node name="rear_right" parent="." index="6"]
2021-11-09 21:56:16 +00:00
transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, -0.950755, 0.503756, -1.41438 )
2021-11-05 22:11:26 +00:00
use_as_traction = true
2021-11-06 22:08:55 +00:00
wheel_radius = 0.6
2021-11-20 18:18:28 +00:00
wheel_rest_length = 0.68
2021-11-21 22:08:52 +00:00
wheel_friction_slip = 1.9
2021-11-20 18:18:28 +00:00
suspension_travel = 1.2
suspension_stiffness = 4.5
2021-11-20 18:23:07 +00:00
suspension_max_force = 14000.0
2021-11-20 18:18:28 +00:00
damping_compression = 0.9
damping_relaxation = 0.94
2021-11-09 21:56:16 +00:00
[node name="rear_right" parent="rear_right" index="0"]
transform = Transform( -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
2021-11-14 22:00:12 +00:00
[node name="engine_sound_player" type="AudioStreamPlayer3D" parent="." index="7"]
2021-11-08 18:53:23 +00:00
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.14201, 0.968668 )
stream = SubResource( 3 )
unit_db = 14.0
2021-11-17 22:23:12 +00:00
bus = "Sound"
2021-11-13 21:22:07 +00:00
2021-11-14 22:00:12 +00:00
[node name="Smoke" type="Particles" parent="." index="8"]
2021-11-13 21:22:07 +00:00
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 )
2021-11-14 22:00:12 +00:00
[node name="fl_tire_smoke" parent="." index="9" instance=ExtResource( 2 )]
2021-11-13 21:22:07 +00:00
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.950754, -0.0380455, 1.41438 )
2021-11-14 22:00:12 +00:00
[node name="fr_tire_smoke" parent="." index="10" instance=ExtResource( 2 )]
2021-11-13 21:22:07 +00:00
transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, -0.950754, -0.038045, 1.41438 )
2021-11-14 22:00:12 +00:00
[node name="rl_tire_smoke" parent="." index="11" instance=ExtResource( 2 )]
2021-11-13 21:22:07 +00:00
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.950753, -0.0380455, -1.41438 )
2021-11-14 22:00:12 +00:00
[node name="rr_tire_smoke" parent="." index="12" instance=ExtResource( 2 )]
2021-11-13 21:22:07 +00:00
transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, -0.950755, -0.038045, -1.41438 )