3D Explosions

This commit is contained in:
Marco 2025-06-20 11:28:18 +02:00
commit ad63d2ff43
20 changed files with 207 additions and 19 deletions

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://br01ww57uaky5"]
[gd_scene load_steps=5 format=3 uid="uid://br01ww57uaky5"]
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_hsg1w"]
[ext_resource type="PackedScene" uid="uid://hxn4awevjyui" path="res://3D/BlockbenchModels/Box/Box_Blue.gltf" id="1_ropdl"]
[ext_resource type="Resource" uid="uid://bes254wblt1lm" path="res://Resources/Bullets/Explosion_Harmless_Small_3D.tres" id="2_cn5xh"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
size = Vector3(0.763428, 0.469452, 0.77832)
@ -10,6 +11,7 @@ size = Vector3(0.763428, 0.469452, 0.77832)
collision_layer = 16
collision_mask = 0
script = ExtResource("1_hsg1w")
ExplosionData = ExtResource("2_cn5xh")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00549316, 0.0253752, -0.000488281)

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://c8wwioforxms3"]
[gd_scene load_steps=5 format=3 uid="uid://c8wwioforxms3"]
[ext_resource type="PackedScene" uid="uid://c5k6rsawax3gf" path="res://3D/BlockbenchModels/Box/Box_Green.gltf" id="1_03sp0"]
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_e6kl3"]
[ext_resource type="Resource" uid="uid://bes254wblt1lm" path="res://Resources/Bullets/Explosion_Harmless_Small_3D.tres" id="2_bguu7"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
size = Vector3(0.763428, 0.469452, 0.77832)
@ -10,6 +11,7 @@ size = Vector3(0.763428, 0.469452, 0.77832)
collision_layer = 16
collision_mask = 0
script = ExtResource("1_e6kl3")
ExplosionData = ExtResource("2_bguu7")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00549316, 0.0253752, -0.000488281)

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://jffyxmft3nbw"]
[gd_scene load_steps=5 format=3 uid="uid://jffyxmft3nbw"]
[ext_resource type="PackedScene" uid="uid://ninnis3a3jbn" path="res://3D/BlockbenchModels/Box/Box_Red.gltf" id="1_fi646"]
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_kvqx7"]
[ext_resource type="Resource" uid="uid://bes254wblt1lm" path="res://Resources/Bullets/Explosion_Harmless_Small_3D.tres" id="2_jolck"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
size = Vector3(0.763428, 0.469452, 0.77832)
@ -10,6 +11,7 @@ size = Vector3(0.763428, 0.469452, 0.77832)
collision_layer = 16
collision_mask = 0
script = ExtResource("1_kvqx7")
ExplosionData = ExtResource("2_jolck")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00549316, 0.0253752, -0.000488281)

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://c6cdl3y3i3axl"]
[gd_scene load_steps=5 format=3 uid="uid://c6cdl3y3i3axl"]
[ext_resource type="PackedScene" uid="uid://cpwolnoq46foq" path="res://3D/BlockbenchModels/Box/Box_Yellow.gltf" id="1_0rxnx"]
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_l0sp5"]
[ext_resource type="Resource" uid="uid://bes254wblt1lm" path="res://Resources/Bullets/Explosion_Harmless_Small_3D.tres" id="2_1if0l"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
size = Vector3(0.763428, 0.469452, 0.77832)
@ -10,6 +11,7 @@ size = Vector3(0.763428, 0.469452, 0.77832)
collision_layer = 16
collision_mask = 0
script = ExtResource("1_l0sp5")
ExplosionData = ExtResource("2_1if0l")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00549316, 0.0253752, -0.000488281)

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=4 format=3 uid="uid://b0rhxqjs52fsv"]
[gd_scene load_steps=5 format=3 uid="uid://b0rhxqjs52fsv"]
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_ix4p0"]
[ext_resource type="Resource" uid="uid://bes254wblt1lm" path="res://Resources/Bullets/Explosion_Harmless_Small_3D.tres" id="2_1t1m8"]
[ext_resource type="PackedScene" uid="uid://bt5weyaiyhtrl" path="res://3D/BlockbenchModels/Camera/Camera.gltf" id="2_ix4p0"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
@ -10,6 +11,7 @@ size = Vector3(0.763428, 0.469452, 0.77832)
collision_layer = 16
collision_mask = 0
script = ExtResource("1_ix4p0")
ExplosionData = ExtResource("2_1t1m8")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00549316, 0.0253752, -0.000488281)

View file

@ -5,7 +5,7 @@
[sub_resource type="CylinderShape3D" id="CylinderShape3D_dkwt8"]
height = 0.882874
[node name="BoxBlue" type="StaticBody3D"]
[node name="CapacitorMini" type="StaticBody3D"]
collision_layer = 16
collision_mask = 0

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://d2kqcbr5rufxb"]
[gd_scene load_steps=5 format=3 uid="uid://d2kqcbr5rufxb"]
[ext_resource type="PackedScene" uid="uid://etmm2bm8mj06" path="res://3D/BlockbenchModels/WoodenBox/Wooden_Box.gltf" id="1_2t24b"]
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_nnmn3"]
[ext_resource type="Resource" uid="uid://bes254wblt1lm" path="res://Resources/Bullets/Explosion_Harmless_Small_3D.tres" id="2_5j3e2"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
size = Vector3(1, 0.498138, 0.543457)
@ -10,6 +11,7 @@ size = Vector3(1, 0.498138, 0.543457)
collision_layer = 16
collision_mask = 0
script = ExtResource("1_nnmn3")
ExplosionData = ExtResource("2_5j3e2")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0022127, -0.0178223)

View file

@ -1,14 +1,18 @@
[gd_scene load_steps=3 format=3 uid="uid://c2enjjxlfb5or"]
[gd_scene load_steps=5 format=3 uid="uid://c2enjjxlfb5or"]
[ext_resource type="Texture2D" uid="uid://du8xcvbnf30o2" path="res://ExternalMaterial/Barrel/Barrels.png" id="1_2libs"]
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_gafco"]
[ext_resource type="Resource" uid="uid://bpreje4f8ok62" path="res://Resources/Bullets/Explosion_3D.tres" id="2_g54tg"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_2libs"]
height = 0.564575
radius = 0.321777
[node name="StaticBody3D" type="StaticBody3D"]
[node name="StaticBody3D" type="StaticBody3D" groups=["Destroyable"]]
collision_layer = 16
collision_mask = 0
script = ExtResource("1_gafco")
ExplosionData = ExtResource("2_g54tg")
[node name="Barrel" type="Sprite3D" parent="."]
transform = Transform3D(0.707107, -0.5, 0.5, 0, 0.707107, 0.707107, -0.707107, -0.5, 0.5, 0, 0, 0)