Quellcode durchsuchen

Make a first groundable biplan

DricomDragon vor 1 Monat
Ursprung
Commit
fd46ef925c

+ 1 - 0
godot/component/entity/collectibles/chocolate/chocolate.tscn

@@ -111,6 +111,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.119209, 0)
 mesh = SubResource("BoxMesh_ialpe")
 
 [node name="ChocolatePickupSound" type="AudioStreamPlayer3D" parent="."]
+visible = false
 stream = ExtResource("2_ecvab")
 
 [connection signal="body_entered" from="ChocolateTablet" to="." method="_on_chocolate_tablet_body_entered"]

BIN
godot/component/entity/vehicles/biplan/TheWindWaker_noWheel.glb


+ 36 - 0
godot/component/entity/vehicles/biplan/TheWindWaker_noWheel.glb.import

@@ -0,0 +1,36 @@
+[remap]
+
+importer="scene"
+importer_version=1
+type="PackedScene"
+uid="uid://bcysn7mbjre1r"
+path="res://.godot/imported/TheWindWaker_noWheel.glb-4660da8d08b21f8d18ffac6a1bde77d3.scn"
+
+[deps]
+
+source_file="res://component/entity/vehicles/biplan/TheWindWaker_noWheel.glb"
+dest_files=["res://.godot/imported/TheWindWaker_noWheel.glb-4660da8d08b21f8d18ffac6a1bde77d3.scn"]
+
+[params]
+
+nodes/root_type=""
+nodes/root_name=""
+nodes/apply_root_scale=true
+nodes/root_scale=1.0
+nodes/import_as_skeleton_bones=false
+meshes/ensure_tangents=true
+meshes/generate_lods=true
+meshes/create_shadow_meshes=true
+meshes/light_baking=1
+meshes/lightmap_texel_size=0.2
+meshes/force_disable_compression=false
+skins/use_named_skins=true
+animation/import=true
+animation/fps=30
+animation/trimming=false
+animation/remove_immutable_tracks=true
+animation/import_rest_as_RESET=false
+import_script/path=""
+_subresources={}
+gltf/naming_version=1
+gltf/embedded_image_handling=1

+ 45 - 0
godot/component/entity/vehicles/biplan/biplan.tscn

@@ -0,0 +1,45 @@
+[gd_scene load_steps=7 format=3 uid="uid://ceqqr0vn633o4"]
+
+[ext_resource type="Script" path="res://component/entity/vehicles/seated_vehicle.gd" id="1_ced13"]
+[ext_resource type="PackedScene" uid="uid://bcysn7mbjre1r" path="res://component/entity/vehicles/biplan/TheWindWaker_noWheel.glb" id="2_mr41j"]
+[ext_resource type="PackedScene" uid="uid://bhutb1ntqf2vt" path="res://component/entity/vehicles/biplan/wheels/TheWindWaker_sideWheel.glb" id="3_8s6eu"]
+[ext_resource type="PackedScene" uid="uid://lcp33gkhc60y" path="res://component/entity/vehicles/biplan/wheels/TheWindWaker_rearWheel.glb" id="4_5u4vt"]
+
+[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_d0fig"]
+radius = 0.514
+height = 4.27973
+
+[sub_resource type="BoxShape3D" id="BoxShape3D_6m175"]
+size = Vector3(7.995, 0.12, 0.5)
+
+[node name="Biplan" type="VehicleBody3D" groups=["vehicle"]]
+mass = 400.0
+script = ExtResource("1_ced13")
+
+[node name="TheWindWaker_noWheel" parent="." instance=ExtResource("2_mr41j")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)
+
+[node name="RightWheel" type="VehicleWheel3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.85905, -0.352406, 0.377702)
+wheel_radius = 0.245
+wheel_rest_length = 0.074
+suspension_stiffness = 50.0
+damping_compression = 0.3
+damping_relaxation = 0.5
+
+[node name="TheWindWaker_sideWheel" parent="RightWheel" instance=ExtResource("3_8s6eu")]
+
+[node name="RearWheel" type="VehicleWheel3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.87896)
+use_as_steering = true
+wheel_radius = 0.19
+
+[node name="TheWindWaker_rearWheel" parent="RearWheel" instance=ExtResource("4_5u4vt")]
+
+[node name="Body" type="CollisionShape3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.507829, -0.522253)
+shape = SubResource("CapsuleShape3D_d0fig")
+
+[node name="BottomWing" type="CollisionShape3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 0.980604, -0.195998, 0, 0.195998, 0.980604, 0, 0.107529, -0.828761)
+shape = SubResource("BoxShape3D_6m175")

godot/component/entity/vehicles/plane/propeller-aircraft-engine-noise.mp3 → godot/component/entity/vehicles/biplan/propeller-aircraft-engine-noise.mp3


+ 6 - 6
godot/component/entity/vehicles/plane/propeller-aircraft-engine-noise.mp3.import

@@ -3,17 +3,17 @@
 importer="mp3"
 type="AudioStreamMP3"
 uid="uid://ov6tnal7utuo"
-path="res://.godot/imported/propeller-aircraft-engine-noise.mp3-69c0070ad7ce30a0ceb30cdefa2630ec.mp3str"
+path="res://.godot/imported/propeller-aircraft-engine-noise.mp3-16a0a42895fbbf20b7ca30194da7f625.mp3str"
 
 [deps]
 
-source_file="res://component/entity/vehicles/plane/propeller-aircraft-engine-noise.mp3"
-dest_files=["res://.godot/imported/propeller-aircraft-engine-noise.mp3-69c0070ad7ce30a0ceb30cdefa2630ec.mp3str"]
+source_file="res://component/entity/vehicles/biplan/propeller-aircraft-engine-noise.mp3"
+dest_files=["res://.godot/imported/propeller-aircraft-engine-noise.mp3-16a0a42895fbbf20b7ca30194da7f625.mp3str"]
 
 [params]
 
-loop=false
-loop_offset=0
-bpm=0
+loop=true
+loop_offset=0.0
+bpm=0.0
 beat_count=0
 bar_beats=4

BIN
godot/component/entity/vehicles/biplan/wheels/TheWindWaker_rearWheel.glb


+ 36 - 0
godot/component/entity/vehicles/biplan/wheels/TheWindWaker_rearWheel.glb.import

@@ -0,0 +1,36 @@
+[remap]
+
+importer="scene"
+importer_version=1
+type="PackedScene"
+uid="uid://lcp33gkhc60y"
+path="res://.godot/imported/TheWindWaker_rearWheel.glb-6d04befd81df6ef745ae627cf0a63eaf.scn"
+
+[deps]
+
+source_file="res://component/entity/vehicles/biplan/wheels/TheWindWaker_rearWheel.glb"
+dest_files=["res://.godot/imported/TheWindWaker_rearWheel.glb-6d04befd81df6ef745ae627cf0a63eaf.scn"]
+
+[params]
+
+nodes/root_type=""
+nodes/root_name=""
+nodes/apply_root_scale=true
+nodes/root_scale=1.0
+nodes/import_as_skeleton_bones=false
+meshes/ensure_tangents=true
+meshes/generate_lods=true
+meshes/create_shadow_meshes=true
+meshes/light_baking=1
+meshes/lightmap_texel_size=0.2
+meshes/force_disable_compression=false
+skins/use_named_skins=true
+animation/import=true
+animation/fps=30
+animation/trimming=false
+animation/remove_immutable_tracks=true
+animation/import_rest_as_RESET=false
+import_script/path=""
+_subresources={}
+gltf/naming_version=1
+gltf/embedded_image_handling=1

BIN
godot/component/entity/vehicles/biplan/wheels/TheWindWaker_sideWheel.glb


+ 36 - 0
godot/component/entity/vehicles/biplan/wheels/TheWindWaker_sideWheel.glb.import

@@ -0,0 +1,36 @@
+[remap]
+
+importer="scene"
+importer_version=1
+type="PackedScene"
+uid="uid://bhutb1ntqf2vt"
+path="res://.godot/imported/TheWindWaker_sideWheel.glb-ba2edf3107a3df6d62278e0449b8ec60.scn"
+
+[deps]
+
+source_file="res://component/entity/vehicles/biplan/wheels/TheWindWaker_sideWheel.glb"
+dest_files=["res://.godot/imported/TheWindWaker_sideWheel.glb-ba2edf3107a3df6d62278e0449b8ec60.scn"]
+
+[params]
+
+nodes/root_type=""
+nodes/root_name=""
+nodes/apply_root_scale=true
+nodes/root_scale=1.0
+nodes/import_as_skeleton_bones=false
+meshes/ensure_tangents=true
+meshes/generate_lods=true
+meshes/create_shadow_meshes=true
+meshes/light_baking=1
+meshes/lightmap_texel_size=0.2
+meshes/force_disable_compression=false
+skins/use_named_skins=true
+animation/import=true
+animation/fps=30
+animation/trimming=false
+animation/remove_immutable_tracks=true
+animation/import_rest_as_RESET=false
+import_script/path=""
+_subresources={}
+gltf/naming_version=1
+gltf/embedded_image_handling=1

+ 1 - 1
godot/component/entity/vehicles/jeep/Jeep.tscn

@@ -17,8 +17,8 @@ collision_mask = 27
 mass = 400.0
 center_of_mass_mode = 1
 center_of_mass = Vector3(0, 0.06, 0)
-max_contacts_reported = 1
 contact_monitor = true
+max_contacts_reported = 1
 script = ExtResource("1_fjw46")
 max_engine_force = 1842.0
 

+ 5 - 0
godot/project.godot

@@ -27,6 +27,11 @@ PromptManager="*res://addons/input_prompts/input_prompt_manager.gd"
 
 enabled=PackedStringArray("res://addons/input_prompts/plugin.cfg")
 
+[global_group]
+
+seat="A place on a vehicle where the player can sit on"
+vehicle="An technical object that the player can drive"
+
 [input]
 
 ui_accept={

+ 5 - 1
godot/run/levels/infinite_level.tscn

@@ -1,4 +1,4 @@
-[gd_scene load_steps=33 format=3 uid="uid://7ivipmwaw24t"]
+[gd_scene load_steps=34 format=3 uid="uid://7ivipmwaw24t"]
 
 [ext_resource type="Texture2D" uid="uid://cgwafs6ukpm7y" path="res://component/entity/ground/ground051.jpg" id="1_3ytcp"]
 [ext_resource type="Script" path="res://run/levels/camera_tracker.gd" id="1_qdm47"]
@@ -11,6 +11,7 @@
 [ext_resource type="PackedScene" uid="uid://dhmnou48k24lr" path="res://component/entity/props/triangle/flat_triangle.tscn" id="7_yyaog"]
 [ext_resource type="Script" path="res://flow/music_player/music_player.gd" id="8_iulsm"]
 [ext_resource type="AudioStream" uid="uid://c3l60bt307wjh" path="res://flow/music_player/00-Wesh-tone-realaze.mp3" id="8_ndffw"]
+[ext_resource type="PackedScene" uid="uid://ceqqr0vn633o4" path="res://component/entity/vehicles/biplan/biplan.tscn" id="10_j323j"]
 [ext_resource type="PackedScene" uid="uid://bwhwbm6jrvg42" path="res://component/entity/buildings/outer_stairs_house/outer_stairs_house.tscn" id="11_j8m6y"]
 [ext_resource type="PackedScene" uid="uid://cxdvll60r67q8" path="res://component/entity/buildings/character_sign_choco/character_sign_choco.tscn" id="13_2x2n6"]
 [ext_resource type="PackedScene" uid="uid://uy3pgfv4q3iy" path="res://component/ui/title/title_screen.tscn" id="13_2xijd"]
@@ -284,6 +285,9 @@ transform = Transform3D(0.920102, 0, 0.391679, 0, 1, 0, -0.391679, 0, 0.920102,
 [node name="Jeep9" parent="Vehicles" instance=ExtResource("6_nnvc5")]
 transform = Transform3D(0.920102, 0, 0.391679, 0, 1, 0, -0.391679, 0, 0.920102, -163.38, 0.747562, 75.9588)
 
+[node name="Biplan" parent="Vehicles" instance=ExtResource("10_j323j")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.2242, 0, 55.4111)
+
 [node name="Buildings" type="Node3D" parent="."]
 
 [node name="StairHouse1" parent="Buildings" instance=ExtResource("11_j8m6y")]

+ 55 - 0
godot/run/levels/test/biplans.tscn

@@ -0,0 +1,55 @@
+[gd_scene load_steps=7 format=3 uid="uid://c7mdo8kugd8e"]
+
+[ext_resource type="Texture2D" uid="uid://cgwafs6ukpm7y" path="res://component/entity/ground/ground051.jpg" id="1_x5qt0"]
+[ext_resource type="Script" path="res://run/levels/camera_tracker.gd" id="2_m6pqc"]
+[ext_resource type="PackedScene" uid="uid://ceqqr0vn633o4" path="res://component/entity/vehicles/biplan/biplan.tscn" id="3_wp27j"]
+
+[sub_resource type="BoxShape3D" id="BoxShape3D_ctk0t"]
+size = Vector3(500, 10, 500)
+
+[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ot7iy"]
+albedo_texture = ExtResource("1_x5qt0")
+subsurf_scatter_strength = 0.73
+grow_amount = 0.352
+point_size = 55.9
+
+[sub_resource type="QuadMesh" id="QuadMesh_dt8nl"]
+material = SubResource("StandardMaterial3D_ot7iy")
+size = Vector2(500, 500)
+orientation = 1
+
+[node name="InfiniteLevel" type="Node3D"]
+
+[node name="Ground" type="StaticBody3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
+collision_mask = 0
+
+[node name="Shape" type="CollisionShape3D" parent="Ground"]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0)
+shape = SubResource("BoxShape3D_ctk0t")
+
+[node name="MeshInstance3D" type="MeshInstance3D" parent="Ground"]
+mesh = SubResource("QuadMesh_dt8nl")
+
+[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 0.734358, 0.678762, 0, -0.678762, 0.734358, -33.1669, 12.6773, 15.7238)
+shadow_enabled = true
+
+[node name="MainCamera" type="Camera3D" parent="."]
+transform = Transform3D(0.865641, -0.163827, 0.473103, 3.02203e-08, 0.944949, 0.327218, -0.500665, -0.283253, 0.817987, -74.1516, 5.77866, 70.029)
+current = true
+script = ExtResource("2_m6pqc")
+max_distance = 6.0
+camera_height = 2.0
+
+[node name="Biplan1" parent="." instance=ExtResource("3_wp27j")]
+transform = Transform3D(-0.0491111, 0, 0.998793, 0, 1, 0, -0.998793, 0, -0.0491111, -89.2691, 13.9787, 53.3185)
+
+[node name="Biplan2" parent="." instance=ExtResource("3_wp27j")]
+transform = Transform3D(-0.0491111, 0, 0.998793, 0, 1, 0, -0.998793, 0, -0.0491111, -89.2691, -0.408847, 53.3185)
+
+[node name="Biplan3" parent="." instance=ExtResource("3_wp27j")]
+transform = Transform3D(-0.0491111, 0, 0.998793, 0, 1, 0, -0.998793, 0, -0.0491111, -83.7131, -0.408845, 61.062)
+
+[node name="Biplan4" parent="." instance=ExtResource("3_wp27j")]
+transform = Transform3D(0.822065, 0, -0.569394, 0, 1, 0, 0.569394, 0, 0.822065, -79.6031, -0.408845, 60.0757)