Add beetle car

soundtrack
Ensar Sarajčić 2021-11-10 00:59:58 +01:00
parent 9c8152a3ab
commit f342b6360d
13 changed files with 1143 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
[gd_scene load_steps=11 format=2] [gd_scene load_steps=11 format=2]
[ext_resource path="res://vehicles/buggy.tscn" type="PackedScene" id=1]
[ext_resource path="res://player/camera.gd" type="Script" id=2] [ext_resource path="res://player/camera.gd" type="Script" id=2]
[ext_resource path="res://icon.png" type="Texture" id=3] [ext_resource path="res://icon.png" type="Texture" id=3]
[ext_resource path="res://vehicles/beetlecar.tscn" type="PackedScene" id=4]
[sub_resource type="PlaneMesh" id=1] [sub_resource type="PlaneMesh" id=1]
@ -49,15 +49,11 @@ material/0 = SubResource( 2 )
transform = Transform( 6.13726, 0, 0, 0, 6.13726, 0, 0, 0, 6.13726, 0, 0, 0 ) transform = Transform( 6.13726, 0, 0, 0, 6.13726, 0, 0, 0, 6.13726, 0, 0, 0 )
shape = SubResource( 3 ) shape = SubResource( 3 )
[node name="buggy" parent="." instance=ExtResource( 1 )]
transform = Transform( 1.00456, 0, 0, 0, 1.00456, 0, 0, 0, 1.00456, -38.0928, 1.38435, -0.0872202 )
mass = 250.0
[node name="camera" type="Camera" parent="."] [node name="camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.88022, 23.0639 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.88022, 23.0639 )
far = 457.7 far = 457.7
script = ExtResource( 2 ) script = ExtResource( 2 )
follow_target_path = NodePath("../buggy") follow_target_path = NodePath("../beetlecar")
target_distance = 12.0 target_distance = 12.0
target_height = 6.0 target_height = 6.0
@ -97,3 +93,6 @@ path_local = true
path_continuous_u = true path_continuous_u = true
path_u_distance = 1.0 path_u_distance = 1.0
path_joined = true path_joined = true
[node name="beetlecar" parent="." instance=ExtResource( 4 )]
transform = Transform( 1.00456, 0, 0, 0, 1.00456, 0, 0, 0, 1.00456, -5.11782, -2.38419e-07, -0.860649 )

View File

@ -0,0 +1,73 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://vehicles/buggy.gd" type="Script" id=1]
[ext_resource path="res://assets/beetlecar.glb" type="PackedScene" id=2]
[sub_resource type="Curve" id=3]
_data = [ Vector2( 0, 0 ), 0.0, 1.32264, 0, 1, Vector2( 0.481132, 0.636364 ), 1.32264, 0.0, 1, 0, Vector2( 0.877358, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.417676, 0.42291, 1.58775 )
[sub_resource type="AudioStreamGenerator" id=2]
mix_rate = 5500.0
[node name="beetlecar" instance=ExtResource( 2 )]
mass = 140.0
script = ExtResource( 1 )
gear_ratios = [ 2.24, 2.0, 1.89, 1.67, 1.44, 1.23 ]
final_drive = 5.6
max_rpm = 8000.0
power_curve = SubResource( 3 )
[node name="rear_right" parent="." index="0"]
use_as_traction = true
wheel_radius = 0.38
wheel_rest_length = 0.5
wheel_friction_slip = 4.0
suspension_travel = 0.5
[node name="rear_left" parent="." index="3"]
transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, 0.621506, 0.375, -0.83483 )
use_as_traction = true
wheel_radius = 0.38
wheel_rest_length = 0.5
wheel_friction_slip = 4.0
suspension_travel = 0.5
[node name="rear_left" parent="rear_left" index="0"]
transform = Transform( -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
[node name="front_right" parent="." index="4"]
use_as_steering = true
wheel_radius = 0.38
wheel_rest_length = 0.5
wheel_friction_slip = 4.0
suspension_travel = 0.5
[node name="front_left" parent="." index="5"]
transform = Transform( 1, 0, 0, 0, 1, -1.50996e-07, 0, 1.50996e-07, 1, 0.621506, 0.375, 1.19336 )
use_as_steering = true
wheel_radius = 0.38
wheel_rest_length = 0.5
wheel_friction_slip = 4.0
suspension_travel = 0.5
[node name="front_left" parent="front_left" index="0"]
transform = Transform( -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
[node name="CollisionShape" type="CollisionShape" parent="." index="6"]
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"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.14201, 0.968668 )
stream = SubResource( 2 )
unit_db = 14.0