TUBES NOW SHOOT UP, A BASKED NOW CATCHES YOU

This commit is contained in:
Derek
2025-03-30 18:44:54 -05:00
parent 757b2df6b3
commit e1ac78d927
17 changed files with 461 additions and 116 deletions

View File

@@ -1,6 +1,7 @@
[gd_scene load_steps=15 format=4 uid="uid://h05qay3qri4e"]
[gd_scene load_steps=21 format=4 uid="uid://h05qay3qri4e"]
[ext_resource type="Texture2D" uid="uid://ixeulptnq4t7" path="res://assets/Models/SubstancePainterTest/switch1.base_BaseColor.png" id="1_fj3ta"]
[ext_resource type="Script" uid="uid://3dribcjjimj8" path="res://scripts/switch_interactandshoot.gd" id="1_rw0ux"]
[ext_resource type="Texture2D" uid="uid://bqbnqyyxcp4fd" path="res://assets/Models/SubstancePainterTest/switch1.base_Metallic.png" id="2_51b4u"]
[ext_resource type="Texture2D" uid="uid://bfsf6vw1hv3qe" path="res://assets/Models/SubstancePainterTest/switch1.base_Normal.png" id="3_5128q"]
[ext_resource type="Texture2D" uid="uid://dn2os4sr5ymnj" path="res://assets/Models/SubstancePainterTest/switch1.base_Roughness.png" id="4_323bf"]
@@ -97,7 +98,56 @@ _surfaces = [{
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_gqho7")
[node name="Switch1" type="Node3D"]
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_rw0ux"]
data = PackedVector3Array(-0.1, -0.1, 0.2, -0.1, 0.1, -0.2, -0.1, 0.1, 0.2, -0.1, -0.1, 0.2, -0.1, -0.1, -0.2, -0.1, 0.1, -0.2, -0.1, -0.1, -0.2, 0.1, 0.1, -0.2, -0.1, 0.1, -0.2, -0.1, -0.1, -0.2, 0.1, -0.1, -0.2, 0.1, 0.1, -0.2, 0.1, -0.1, -0.2, 0.1, 0.1, 0.2, 0.1, 0.1, -0.2, 0.1, -0.1, -0.2, 0.1, -0.1, 0.2, 0.1, 0.1, 0.2, 0.1, -0.1, 0.2, -0.1, 0.1, 0.2, 0.1, 0.1, 0.2, 0.1, -0.1, 0.2, -0.1, -0.1, 0.2, -0.1, 0.1, 0.2, -0.1, -0.1, -0.2, 0.1, -0.1, 0.2, 0.1, -0.1, -0.2, -0.1, -0.1, -0.2, -0.1, -0.1, 0.2, 0.1, -0.1, 0.2, -0.07, 0.1, 0.17, 0.07, 0.0881, 0.17, 0.07, 0.1, 0.17, -0.07, 0.1, 0.17, -0.07, 0.0881, 0.17, 0.07, 0.0881, 0.17, -0.07, 0.1, 0.17, -0.1, 0.1, -0.2, -0.07, 0.1, -0.17, -0.07, 0.1, 0.17, -0.1, 0.1, 0.2, -0.1, 0.1, -0.2, -0.07, 0.1, -0.17, 0.1, 0.1, -0.2, 0.07, 0.1, -0.17, -0.07, 0.1, -0.17, -0.1, 0.1, -0.2, 0.1, 0.1, -0.2, 0.07, 0.1, -0.17, 0.1, 0.1, 0.2, 0.07, 0.1, 0.17, 0.07, 0.1, -0.17, 0.1, 0.1, -0.2, 0.1, 0.1, 0.2, 0.07, 0.1, 0.17, -0.1, 0.1, 0.2, -0.07, 0.1, 0.17, 0.07, 0.1, 0.17, 0.1, 0.1, 0.2, -0.1, 0.1, 0.2, 0.042, 0.0881, 0.0652, 0.042, -0.0877, -0.0652, 0.042, 0.0881, -0.0652, 0.042, 0.0881, 0.0652, 0.042, -0.0877, 0.0652, 0.042, -0.0877, -0.0652, 0.07, 0.1, -0.17, -0.07, 0.0881, -0.17, -0.07, 0.1, -0.17, 0.07, 0.1, -0.17, 0.07, 0.0881, -0.17, -0.07, 0.0881, -0.17, 0.07, 0.1, 0.17, 0.07, 0.0881, -0.17, 0.07, 0.1, -0.17, 0.07, 0.1, 0.17, 0.07, 0.0881, 0.17, 0.07, 0.0881, -0.17, -0.07, 0.1, -0.17, -0.07, 0.0881, 0.17, -0.07, 0.1, 0.17, -0.07, 0.1, -0.17, -0.07, 0.0881, -0.17, -0.07, 0.0881, 0.17, -0.042, 0.0881, 0.0652, -0.07, 0.0881, -0.17, -0.042, 0.0881, -0.0652, -0.042, 0.0881, 0.0652, -0.07, 0.0881, 0.17, -0.07, 0.0881, -0.17, -0.042, 0.0881, -0.0652, 0.07, 0.0881, -0.17, 0.042, 0.0881, -0.0652, -0.042, 0.0881, -0.0652, -0.07, 0.0881, -0.17, 0.07, 0.0881, -0.17, 0.042, 0.0881, -0.0652, 0.07, 0.0881, 0.17, 0.042, 0.0881, 0.0652, 0.042, 0.0881, -0.0652, 0.07, 0.0881, -0.17, 0.07, 0.0881, 0.17, 0.042, 0.0881, 0.0652, -0.07, 0.0881, 0.17, -0.042, 0.0881, 0.0652, 0.042, 0.0881, 0.0652, 0.07, 0.0881, 0.17, -0.07, 0.0881, 0.17, 0.042, -0.0877, -0.0652, -0.042, -0.0877, 0.0652, -0.042, -0.0877, -0.0652, 0.042, -0.0877, -0.0652, 0.042, -0.0877, 0.0652, -0.042, -0.0877, 0.0652, -0.042, 0.0881, -0.0652, -0.042, -0.0877, 0.0652, -0.042, 0.0881, 0.0652, -0.042, 0.0881, -0.0652, -0.042, -0.0877, -0.0652, -0.042, -0.0877, 0.0652, -0.042, 0.0881, 0.0652, 0.042, -0.0877, 0.0652, 0.042, 0.0881, 0.0652, -0.042, 0.0881, 0.0652, -0.042, -0.0877, 0.0652, 0.042, -0.0877, 0.0652, 0.042, 0.0881, -0.0652, -0.042, -0.0877, -0.0652, -0.042, 0.0881, -0.0652, 0.042, 0.0881, -0.0652, 0.042, -0.0877, -0.0652, -0.042, -0.0877, -0.0652)
[sub_resource type="Animation" id="Animation_c5qda"]
resource_name = "on"
length = 0.4
tracks/0/type = "rotation_3d"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("SwitchBase-LOW/Switch-Low")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = PackedFloat32Array(0, 1, 0.236828, 0.236828, -0.666268, 0.666268, 0.166667, 1, 0.527821, 0.527821, -0.470536, 0.470536, 0.233333, 1, 0.569757, 0.569757, -0.418781, 0.418781, 0.4, 1, 0.527821, 0.527821, -0.470536, 0.470536)
[sub_resource type="Animation" id="Animation_rw0ux"]
length = 0.001
tracks/0/type = "rotation_3d"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("SwitchBase-LOW/Switch-Low")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = PackedFloat32Array(0, 1, 0.236828, 0.236828, -0.666268, 0.666268)
[sub_resource type="Animation" id="Animation_gt83m"]
resource_name = "off"
length = 0.4
tracks/0/type = "rotation_3d"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("SwitchBase-LOW/Switch-Low")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = PackedFloat32Array(0, 1, 0.527821, 0.527821, -0.470536, 0.470536, 0.233333, 1, 0.569757, 0.569757, -0.418781, 0.418781, 0.3, 1, 0.527821, 0.527821, -0.470536, 0.470536, 0.4, 1, 0.236828, 0.236828, -0.666268, 0.666268)
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ms0kb"]
_data = {
&"RESET": SubResource("Animation_rw0ux"),
&"off": SubResource("Animation_gt83m"),
&"on": SubResource("Animation_c5qda")
}
[node name="Switch1" type="StaticBody3D" node_paths=PackedStringArray("anim_player")]
collision_layer = 130
collision_mask = 130
script = ExtResource("1_rw0ux")
start_on = true
toggle_enabled = true
bullet_enabled = false
anim_player = NodePath("AnimationPlayer")
[node name="SwitchBase-LOW" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.1, 0)
@@ -105,6 +155,15 @@ mesh = SubResource("ArrayMesh_cm7na")
skeleton = NodePath("")
[node name="Switch-Low" type="MeshInstance3D" parent="SwitchBase-LOW"]
transform = Transform3D(1.19209e-07, 1, -2.98023e-08, -0.382684, 1.19209e-07, -0.923879, -0.923879, -2.98023e-08, 0.382684, 0, 0.017386, 0)
transform = Transform3D(-9.22129e-08, 1, 5.96046e-08, -0.77565, -3.39048e-08, -0.631163, -0.631163, -1.04434e-07, 0.77565, 0, 0.0109356, 0)
mesh = SubResource("ArrayMesh_vpr2q")
skeleton = NodePath("")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.1, 0)
shape = SubResource("ConcavePolygonShape3D_rw0ux")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_ms0kb")
}