-
Notifications
You must be signed in to change notification settings - Fork 17
/
Keycard.tscn
70 lines (61 loc) · 9.75 KB
/
Keycard.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[gd_scene load_steps=9 format=3 uid="uid://dsd6mrylbfdp"]
[ext_resource type="Script" path="res://keycard.gd" id="1_mvju4"]
[ext_resource type="Texture2D" uid="uid://34u63emrhxvb" path="res://Levels/textures/keycard-diff.png" id="1_u342h"]
[ext_resource type="Texture2D" uid="uid://x2rt6bd7yxdf" path="res://Levels/textures/keycard-metal-keycard-rough.png" id="2_b5c2e"]
[ext_resource type="Texture2D" uid="uid://b5v1la5cyj7ps" path="res://Levels/textures/keycard-norm.png" id="3_x04w5"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4xdob"]
resource_name = "keycard"
cull_mode = 2
albedo_texture = ExtResource("1_u342h")
metallic = 1.0
metallic_texture = ExtResource("2_b5c2e")
metallic_texture_channel = 2
roughness_texture = ExtResource("2_b5c2e")
roughness_texture_channel = 1
normal_enabled = true
normal_texture = ExtResource("3_x04w5")
[sub_resource type="ArrayMesh" id="ArrayMesh_43ihq"]
_surfaces = [{
"aabb": AABB(-0.4, -0.5, -0.02, 0.8, 1, 0.04),
"format": 34896613377,
"index_count": 108,
"index_data": PackedByteArray(8, 0, 3, 0, 1, 0, 8, 0, 9, 0, 3, 0, 9, 0, 7, 0, 3, 0, 9, 0, 10, 0, 7, 0, 10, 0, 5, 0, 7, 0, 10, 0, 11, 0, 5, 0, 11, 0, 1, 0, 5, 0, 11, 0, 8, 0, 1, 0, 2, 0, 4, 0, 6, 0, 2, 0, 0, 0, 4, 0, 7, 0, 1, 0, 3, 0, 7, 0, 5, 0, 1, 0, 14, 0, 11, 0, 10, 0, 14, 0, 15, 0, 11, 0, 13, 0, 10, 0, 9, 0, 13, 0, 14, 0, 10, 0, 12, 0, 9, 0, 8, 0, 12, 0, 13, 0, 9, 0, 15, 0, 8, 0, 11, 0, 15, 0, 12, 0, 8, 0, 18, 0, 12, 0, 15, 0, 18, 0, 19, 0, 12, 0, 19, 0, 13, 0, 12, 0, 19, 0, 16, 0, 13, 0, 16, 0, 14, 0, 13, 0, 16, 0, 17, 0, 14, 0, 17, 0, 15, 0, 14, 0, 17, 0, 18, 0, 15, 0, 6, 0, 18, 0, 17, 0, 6, 0, 4, 0, 18, 0, 2, 0, 17, 0, 16, 0, 2, 0, 6, 0, 17, 0, 0, 0, 16, 0, 19, 0, 0, 0, 2, 0, 16, 0, 4, 0, 19, 0, 18, 0, 4, 0, 0, 0, 19, 0),
"lods": [0.0592235, PackedByteArray(12, 0, 3, 0, 1, 0, 12, 0, 13, 0, 3, 0, 0, 0, 13, 0, 12, 0, 0, 0, 2, 0, 13, 0, 13, 0, 7, 0, 3, 0, 13, 0, 14, 0, 7, 0, 2, 0, 14, 0, 13, 0, 2, 0, 6, 0, 14, 0, 14, 0, 5, 0, 7, 0, 14, 0, 15, 0, 5, 0, 6, 0, 15, 0, 14, 0, 6, 0, 4, 0, 15, 0, 15, 0, 1, 0, 5, 0, 15, 0, 12, 0, 1, 0, 4, 0, 12, 0, 15, 0, 4, 0, 0, 0, 12, 0, 2, 0, 4, 0, 6, 0, 2, 0, 0, 0, 4, 0, 7, 0, 1, 0, 3, 0, 7, 0, 5, 0, 1, 0)],
"name": "keycard",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 20,
"vertex_data": PackedByteArray(51, 3, 0, 0, 255, 191, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 51, 3, 0, 0, 255, 63, 0, 0, 0, 0, 255, 255, 0, 0, 0, 0, 203, 252, 0, 0, 255, 191, 0, 0, 255, 223, 255, 255, 255, 255, 0, 0, 203, 252, 0, 0, 255, 63, 0, 0, 255, 223, 255, 255, 0, 0, 0, 0, 0, 0, 101, 230, 255, 255, 0, 0, 0, 0, 101, 230, 0, 0, 0, 0, 255, 255, 101, 230, 0, 0, 0, 0, 255, 255, 101, 230, 255, 255, 0, 0, 0, 0, 50, 179, 255, 255, 0, 0, 0, 0, 50, 179, 0, 0, 0, 0, 255, 255, 50, 179, 0, 0, 0, 0, 255, 255, 50, 179, 255, 255, 0, 0, 51, 3, 163, 176, 255, 63, 0, 0, 203, 252, 163, 176, 255, 63, 0, 0, 203, 252, 163, 176, 255, 191, 0, 0, 51, 3, 163, 176, 255, 191, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_eyqoj"]
resource_name = "models_Keycard"
_surfaces = [{
"aabb": AABB(-0.4, -0.5, -0.02, 0.8, 1, 0.04),
"attribute_data": PackedByteArray(121, 7, 227, 253, 253, 27, 218, 9, 16, 58, 94, 253, 40, 5, 120, 13, 162, 55, 34, 1, 221, 35, 132, 21, 28, 12, 227, 253, 165, 21, 218, 9, 16, 58, 94, 253, 109, 14, 120, 13, 162, 55, 34, 1, 27, 47, 132, 21, 253, 27, 96, 249, 142, 247, 94, 253, 121, 7, 227, 253, 176, 225, 34, 1, 221, 35, 100, 210, 40, 5, 241, 5, 165, 21, 96, 249, 142, 247, 94, 253, 28, 12, 227, 253, 176, 225, 34, 1, 27, 47, 100, 210, 109, 14, 241, 5, 40, 5, 131, 37, 162, 55, 91, 26, 109, 14, 131, 37, 162, 55, 91, 26, 252, 249, 91, 26, 109, 14, 130, 37, 109, 14, 130, 37, 252, 249, 91, 26, 40, 5, 130, 37, 40, 5, 130, 37, 40, 5, 152, 85, 40, 5, 152, 85, 162, 55, 205, 76, 162, 55, 205, 76, 109, 14, 152, 85, 109, 14, 152, 85, 162, 55, 205, 76, 162, 55, 205, 76, 252, 249, 205, 76, 252, 249, 205, 76, 109, 14, 152, 85, 109, 14, 152, 85, 252, 249, 205, 76, 252, 249, 205, 76, 40, 5, 152, 85, 40, 5, 152, 85, 28, 12, 0, 88, 28, 12, 0, 88, 16, 58, 83, 79, 16, 58, 83, 79, 142, 247, 83, 79, 142, 247, 83, 79, 28, 12, 255, 87, 28, 12, 255, 87, 142, 247, 83, 79, 142, 247, 83, 79, 121, 7, 255, 87, 121, 7, 255, 87, 121, 7, 0, 88, 121, 7, 0, 88, 16, 58, 83, 79, 16, 58, 83, 79, 40, 5, 241, 5, 109, 14, 152, 85, 40, 5, 152, 85),
"format": 34896613399,
"index_count": 108,
"index_data": PackedByteArray(24, 0, 9, 0, 3, 0, 24, 0, 26, 0, 9, 0, 27, 0, 21, 0, 10, 0, 27, 0, 28, 0, 21, 0, 29, 0, 17, 0, 23, 0, 29, 0, 32, 0, 17, 0, 31, 0, 4, 0, 15, 0, 31, 0, 25, 0, 4, 0, 7, 0, 12, 0, 18, 0, 7, 0, 1, 0, 12, 0, 22, 0, 5, 0, 11, 0, 22, 0, 16, 0, 5, 0, 45, 0, 33, 0, 30, 0, 45, 0, 49, 0, 33, 0, 41, 0, 28, 0, 27, 0, 41, 0, 43, 0, 28, 0, 34, 0, 26, 0, 24, 0, 34, 0, 38, 0, 26, 0, 47, 0, 25, 0, 31, 0, 47, 0, 37, 0, 25, 0, 58, 0, 36, 0, 46, 0, 58, 0, 64, 0, 36, 0, 63, 0, 39, 0, 35, 0, 63, 0, 51, 0, 39, 0, 52, 0, 42, 0, 40, 0, 52, 0, 54, 0, 42, 0, 56, 0, 48, 0, 44, 0, 56, 0, 60, 0, 48, 0, 20, 0, 61, 0, 57, 0, 20, 0, 14, 0, 61, 0, 8, 0, 55, 0, 53, 0, 8, 0, 19, 0, 55, 0, 0, 0, 50, 0, 62, 0, 0, 0, 6, 0, 50, 0, 13, 0, 65, 0, 59, 0, 13, 0, 2, 0, 65, 0),
"lods": [0.0592235, PackedByteArray(34, 0, 9, 0, 3, 0, 34, 0, 38, 0, 9, 0, 0, 0, 38, 0, 34, 0, 0, 0, 6, 0, 38, 0, 40, 0, 21, 0, 10, 0, 40, 0, 42, 0, 21, 0, 8, 0, 42, 0, 40, 0, 8, 0, 19, 0, 42, 0, 67, 0, 66, 0, 23, 0, 67, 0, 68, 0, 66, 0, 20, 0, 68, 0, 67, 0, 20, 0, 14, 0, 68, 0, 46, 0, 4, 0, 15, 0, 46, 0, 36, 0, 4, 0, 13, 0, 36, 0, 46, 0, 13, 0, 2, 0, 36, 0, 7, 0, 12, 0, 18, 0, 7, 0, 1, 0, 12, 0, 22, 0, 5, 0, 11, 0, 22, 0, 16, 0, 5, 0)],
"material": SubResource("StandardMaterial3D_4xdob"),
"name": "keycard",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 69,
"vertex_data": PackedByteArray(51, 3, 0, 0, 255, 191, 0, 0, 51, 3, 0, 0, 255, 191, 84, 213, 51, 3, 0, 0, 255, 191, 255, 127, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 255, 127, 0, 0, 255, 255, 255, 255, 84, 213, 51, 3, 0, 0, 255, 63, 0, 0, 51, 3, 0, 0, 255, 63, 84, 213, 51, 3, 0, 0, 255, 63, 0, 0, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 84, 213, 203, 252, 0, 0, 255, 191, 84, 213, 203, 252, 0, 0, 255, 191, 255, 127, 203, 252, 0, 0, 255, 191, 255, 191, 255, 223, 255, 255, 255, 255, 255, 127, 255, 223, 255, 255, 255, 255, 84, 213, 255, 223, 255, 255, 255, 255, 252, 197, 203, 252, 0, 0, 255, 63, 84, 213, 203, 252, 0, 0, 255, 63, 0, 0, 203, 252, 0, 0, 255, 63, 255, 191, 255, 223, 255, 255, 0, 0, 0, 0, 255, 223, 255, 255, 0, 0, 84, 213, 255, 223, 255, 255, 0, 0, 252, 197, 0, 0, 101, 230, 255, 255, 0, 0, 0, 0, 101, 230, 255, 255, 255, 127, 0, 0, 101, 230, 0, 0, 0, 0, 0, 0, 101, 230, 0, 0, 0, 0, 255, 255, 101, 230, 0, 0, 0, 0, 255, 255, 101, 230, 0, 0, 252, 197, 255, 255, 101, 230, 0, 0, 255, 191, 255, 255, 101, 230, 255, 255, 255, 127, 255, 255, 101, 230, 255, 255, 252, 197, 255, 255, 101, 230, 255, 255, 255, 191, 0, 0, 50, 179, 255, 255, 0, 0, 0, 0, 50, 179, 255, 255, 84, 22, 0, 0, 50, 179, 255, 255, 255, 159, 0, 0, 50, 179, 255, 255, 255, 127, 0, 0, 50, 179, 0, 0, 0, 0, 0, 0, 50, 179, 0, 0, 84, 22, 0, 0, 50, 179, 0, 0, 255, 31, 0, 0, 50, 179, 0, 0, 0, 0, 255, 255, 50, 179, 0, 0, 255, 31, 255, 255, 50, 179, 0, 0, 0, 0, 255, 255, 50, 179, 0, 0, 252, 197, 255, 255, 50, 179, 0, 0, 255, 191, 255, 255, 50, 179, 255, 255, 255, 159, 255, 255, 50, 179, 255, 255, 255, 127, 255, 255, 50, 179, 255, 255, 252, 197, 255, 255, 50, 179, 255, 255, 255, 191, 51, 3, 163, 176, 255, 63, 0, 0, 51, 3, 163, 176, 255, 63, 84, 22, 51, 3, 163, 176, 255, 63, 255, 31, 51, 3, 163, 176, 255, 63, 0, 0, 203, 252, 163, 176, 255, 63, 255, 31, 203, 252, 163, 176, 255, 63, 0, 0, 203, 252, 163, 176, 255, 63, 252, 197, 203, 252, 163, 176, 255, 63, 255, 191, 203, 252, 163, 176, 255, 191, 255, 159, 203, 252, 163, 176, 255, 191, 255, 127, 203, 252, 163, 176, 255, 191, 252, 197, 203, 252, 163, 176, 255, 191, 255, 191, 51, 3, 163, 176, 255, 191, 0, 0, 51, 3, 163, 176, 255, 191, 84, 22, 51, 3, 163, 176, 255, 191, 255, 159, 51, 3, 163, 176, 255, 191, 255, 127, 255, 223, 255, 255, 255, 255, 207, 193, 255, 255, 50, 179, 0, 0, 24, 192, 255, 255, 50, 179, 255, 255, 255, 191, 255, 63, 255, 127, 170, 42, 84, 213, 255, 127, 255, 255, 255, 63, 255, 127, 255, 127, 255, 255, 84, 213, 170, 42, 255, 63, 255, 127, 170, 42, 84, 213, 255, 255, 255, 127, 255, 63, 255, 127, 255, 255, 255, 127, 84, 213, 170, 42, 170, 42, 84, 213, 255, 127, 255, 255, 255, 127, 0, 0, 255, 127, 255, 255, 84, 213, 170, 42, 253, 185, 255, 28, 170, 42, 84, 213, 255, 255, 255, 127, 255, 127, 0, 0, 255, 255, 255, 127, 84, 213, 170, 42, 253, 185, 255, 28, 255, 63, 255, 127, 255, 127, 255, 255, 255, 63, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 253, 185, 255, 28, 255, 127, 0, 0, 255, 127, 255, 255, 253, 185, 255, 28, 255, 127, 0, 0, 255, 63, 255, 127, 250, 74, 9, 106, 0, 0, 255, 127, 255, 127, 255, 255, 255, 63, 255, 127, 250, 74, 9, 106, 0, 0, 255, 127, 255, 255, 255, 127, 0, 0, 255, 127, 255, 255, 255, 127, 0, 99, 254, 57, 255, 127, 0, 0, 0, 0, 255, 127, 255, 127, 255, 255, 0, 99, 254, 57, 255, 127, 0, 0, 255, 63, 255, 127, 250, 74, 9, 106, 0, 0, 255, 127, 255, 255, 255, 127, 0, 0, 255, 127, 255, 255, 255, 127, 0, 99, 254, 57, 255, 127, 0, 0, 0, 0, 255, 127, 255, 127, 255, 255, 0, 99, 254, 57, 255, 127, 0, 0, 255, 63, 255, 127, 250, 74, 9, 106, 0, 0, 255, 127, 255, 127, 255, 255, 150, 166, 75, 19, 121, 139, 188, 5, 188, 129, 222, 0)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_43ihq")
[sub_resource type="BoxShape3D" id="BoxShape3D_ivroa"]
margin = 0.1
size = Vector3(0.8, 1, 0.1)
[node name="Keycard" type="RigidBody3D"]
mass = 0.1
script = ExtResource("1_mvju4")
prompt_message = "Take key"
[node name="MeshInstance" type="MeshInstance3D" parent="."]
mesh = SubResource("ArrayMesh_eyqoj")
skeleton = NodePath("")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_ivroa")
[connection signal="interacted" from="." to="." method="_on_interacted"]