This commit is contained in:
2024-01-26 00:00:07 +01:00
parent 0d2e01073c
commit bb763ea4e2
140 changed files with 30775 additions and 296 deletions

View File

@@ -16,6 +16,7 @@ buffer = PackedFloat32Array(1.001, 0, 0, -0.075992, 0, 0, -1.001, -0.0484443, 0,
[node name="CompletionCounter" type="MeshInstance3D"]
editor_description = "The amount of signals it needs connected and fired to emit a signal"
visible = false
mesh = SubResource("BoxMesh_w280a")
script = ExtResource("1_40xge")

View File

@@ -1,19 +1,47 @@
[gd_scene load_steps=7 format=3 uid="uid://cy0x2nliyw8gw"]
[gd_scene load_steps=9 format=3 uid="uid://cy0x2nliyw8gw"]
[ext_resource type="Script" path="res://scripts/door.gd" id="1_qix0h"]
[sub_resource type="BoxMesh" id="BoxMesh_8iti4"]
size = Vector3(1.5, 3, 0.2)
[ext_resource type="ArrayMesh" uid="uid://dcoh3pfu6hb6q" path="res://assets/models/door.obj" id="2_vc20h"]
[ext_resource type="Material" uid="uid://canvgrlphqagw" path="res://assets/materials/light_metal.material" id="3_ti6vs"]
[ext_resource type="ArrayMesh" uid="uid://bpv5cwupbmdtk" path="res://assets/models/door_handle.obj" id="4_frcys"]
[sub_resource type="BoxShape3D" id="BoxShape3D_pejvk"]
size = Vector3(1.5, 3, 0.2)
[sub_resource type="Animation" id="Animation_hlq2m"]
[sub_resource type="Animation" id="Animation_1220n"]
resource_name = "open"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MeshInstance3D2:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(1, 0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("MeshInstance3D2/Handle:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0.349066, 1.5708, -1.5708), Vector3(5.93412, 1.5708, -1.5708)]
}
[sub_resource type="Animation" id="Animation_3fs6g"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/path = NodePath("MeshInstance3D2:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
@@ -22,44 +50,48 @@ tracks/0/keys = {
"update": 0,
"values": [Vector3(0, 0, 0)]
}
[sub_resource type="Animation" id="Animation_53g2p"]
resource_name = "open"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("MeshInstance3D2/Handle:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(1.4, 0, 0)]
"values": [Vector3(0.349066, 1.5708, -1.5708)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_r8evj"]
[sub_resource type="AnimationLibrary" id="AnimationLibrary_5xgbb"]
_data = {
"RESET": SubResource("Animation_hlq2m"),
"open": SubResource("Animation_53g2p")
"RESET": SubResource("Animation_3fs6g"),
"open": SubResource("Animation_1220n")
}
[node name="Door" type="Node3D"]
script = ExtResource("1_qix0h")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_8iti4")
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
transform = Transform3D(0.75, 0, 0, 0, 0.75, 0, 0, 0, 0.5, 0, 0, 0)
mesh = ExtResource("2_vc20h")
surface_material_override/0 = ExtResource("3_ti6vs")
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D2"]
transform = Transform3D(1.33333, 0, 0, 0, 1.33333, 0, 0, 0, 1.33333, 0, 0, 0)
collision_layer = 3
collision_mask = 3
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D2/StaticBody3D"]
shape = SubResource("BoxShape3D_pejvk")
[node name="Handle" type="MeshInstance3D" parent="MeshInstance3D2"]
transform = Transform3D(-0.456027, -1.17323e-07, 1.25292, -1.25292, -8.21505e-08, -0.456027, 7.82154e-08, -2, -5.4767e-08, -0.757807, -0.445, -0.399)
mesh = ExtResource("4_frcys")
skeleton = NodePath("../..")
surface_material_override/0 = ExtResource("3_ti6vs")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../MeshInstance3D")
libraries = {
"": SubResource("AnimationLibrary_r8evj")
"": SubResource("AnimationLibrary_5xgbb")
}

View File

@@ -2,27 +2,18 @@
[ext_resource type="PackedScene" uid="uid://dm8l36ephydnl" path="res://scenes/objects/interaction_area.tscn" id="1_0okd0"]
[ext_resource type="Script" path="res://scripts/interactables/completer/button_stand.gd" id="1_gkcm2"]
[ext_resource type="ArrayMesh" uid="uid://bjiycdbug2bd3" path="res://assets/models/button_stand.obj" id="2_0tsnx"]
[ext_resource type="Material" uid="uid://cxjgare3kcbtl" path="res://assets/materials/dark_metal2.material" id="3_u47pc"]
[ext_resource type="Material" uid="uid://df88ryv5mvkg0" path="res://assets/textures/material/metal/metal_red.material" id="4_sck5v"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_jpuiw"]
height = 1.4
height = 1.45
radius = 0.3
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_q60ht"]
albedo_color = Color(0.54902, 0.54902, 0.54902, 1)
[sub_resource type="CylinderMesh" id="CylinderMesh_hgcvq"]
material = SubResource("StandardMaterial3D_q60ht")
top_radius = 0.3
bottom_radius = 0.3
height = 1.4
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_crdtx"]
albedo_color = Color(0.686275, 0, 0.168627, 1)
[sub_resource type="CylinderMesh" id="CylinderMesh_g1gjr"]
material = SubResource("StandardMaterial3D_crdtx")
top_radius = 0.2
bottom_radius = 0.2
material = ExtResource("4_sck5v")
top_radius = 0.12
bottom_radius = 0.12
height = 0.1
[sub_resource type="Animation" id="Animation_y5bt0"]
@@ -37,12 +28,12 @@ tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0.750413, 0)]
"values": [Vector3(0, 0.72, 0)]
}
[sub_resource type="Animation" id="Animation_stg1c"]
resource_name = "press"
length = 0.2
length = 0.1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
@@ -50,10 +41,10 @@ tracks/0/path = NodePath("Button:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2),
"transitions": PackedFloat32Array(1, 1, 1),
"times": PackedFloat32Array(0, 0.1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0.750413, 0), Vector3(0, 0.67, 0), Vector3(0, 0.75, 0)]
"values": [Vector3(0, 0.72, 0), Vector3(0, 0.65, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_um1vs"]
@@ -68,13 +59,21 @@ collision_mask = 7
script = ExtResource("1_gkcm2")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0349109, 0)
shape = SubResource("CylinderShape3D_jpuiw")
[node name="Stand" type="MeshInstance3D" parent="."]
mesh = SubResource("CylinderMesh_hgcvq")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.63, 0)
mesh = ExtResource("2_0tsnx")
surface_material_override/0 = ExtResource("3_u47pc")
[node name="Stand2" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.63, 0)
mesh = ExtResource("2_0tsnx")
surface_material_override/0 = ExtResource("3_u47pc")
[node name="Button" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.750413, 0)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.72, 0)
mesh = SubResource("CylinderMesh_g1gjr")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]