[gd_scene load_steps=8 format=4 uid="uid://cfceg80unq0pe"]

[ext_resource type="Script" uid="uid://bfflnag3p4gen" path="res://player/player.gd" id="1_onrkg"]
[ext_resource type="Script" uid="uid://oi6sint7jkc6" path="res://player/camera_gimbal.gd" id="2_onrkg"]
[ext_resource type="Texture2D" uid="uid://cfb0gbwm57hm4" path="res://models/player_0.png" id="3_hqtel"]

[sub_resource type="BoxShape3D" id="BoxShape3D_onrkg"]
size = Vector3(2, 5, 1)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7mvdw"]
resource_name = "Player1Mtl"
cull_mode = 2
albedo_texture = ExtResource("3_hqtel")
metallic = 1.0
roughness = 0.8

[sub_resource type="ArrayMesh" id="ArrayMesh_e57bw"]
_surfaces = [{
"aabb": AABB(-2, -0.598925, 100.01, 4, 1.19785, 5.100998),
"format": 34359742465,
"index_count": 3198,
"index_data": PackedByteArray("[encoded data, 8528 characters]"),
"lods": [0.01360856, PackedByteArray("[encoded data, 4480 characters]"), 0.17855693, PackedByteArray("QABBAEIAQgBBAAMAQABDAEEAQABCAAIAQQBDAAoAQwBAAAAAQQABAAMAQQAKAAEAQgADAAcAQgAHAAIAAwABAAQAQwAMAAoAQwAAAAwAAQAKAAUAAQAFAAQACgALAAUACgAMAAsABAAFAEQABQALAEQAAwAEAAYABwADAAYABABEAEUABgAEAEUABwAGAAgACAAGAEUAAgAHAAgARABGAEUACABFAEYARABHAEYACwBHAEQACQAIAEYAAgAIAAkADgBGAEcADgAJAEYACwANAEcADQAOAEcAAgAOAAkAAAAOAA0ADAAAAA0ADAANAAsAAAAPAA4AQAAPAAAAQAACAA8ADwAJAA4AAgAPAA4ADwACAAkACQAOAEgADwAYAA4ADgAYAEgADwAbABgACQBIAEkASgAPAAIAEAACAAkASgACABAAEQAJAEkAEAAJABEASwAbAA8ASgBLAA8ATABKABAATQBLAEoATQBKAEwASwAaABsASwBNABoAEgAQABEATAAQABIAEgARABMAEwARAEkATAASABQAFAASABMATQBMABQAEwBJA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AAdAAsADAAhAB8AIQAgAB8AHgAiAAwADAAjACEADAAiACMAIwAhAB8AIQAjACAAIwAfACAAIgAeACQAIwAiACUAIwAlACAAIgAmACUAIgAkACYAJQAmACAAIAAmAB0AJAAnACYAJAAeACcAJwAdACYAHgAdACcAHAAnAB0AKAAjACAAHAAeACcAKAAgACkAIAAfACkAKgAoACkAKgApACsALAAoACoALAAqACsALAAjACgAKwApAC0ALAArAC0ALQApAB8AIwAsAC4ALgAsAC0AIwAuACEALgAtAC8AIQAwAB8ALQAfADEAMAAxAB8ALwAtADEAIQAyADAAMgAxADAAIQAuADMAIQAzADIAMwAuAC8AMgAzADEAMwAvADEANAAcADUANQAcADYANgAcAB0ANQA2ADcANgAdADgANwA2ADgANQA3ADkANwA4ADkANQA5ADoAOQA4ADoANAA1ADoAHQAnADgAJwA6ADgANAAeABwAHgA7ACcANAA6ADwAHgA9ADsAHgA0AD4AHgA+AD0APgA0ADwAJwA/ADoAOwA/ACcAPAA6AD8APQA/ADsAPgA8AD8APQA+AD8A")],
"name": "Player1Mtl",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 529,
"vertex_data": PackedByteArray("[encoded data, 8464 characters]")
}]
blend_shape_mode = 0

[sub_resource type="ArrayMesh" id="ArrayMesh_sweqy"]
resource_name = "Sketchfab_Scene_Object_0"
_surfaces = [{
"aabb": AABB(-2, -0.598925, 100.01, 4, 1.19785, 5.100998),
"attribute_data": PackedByteArray("[encoded data, 7160 characters]"),
"format": 34359742487,
"index_count": 3198,
"index_data": PackedByteArray("[encoded data, 8528 characters]"),
"lods": [0.01360856, PackedByteArray("[encoded data, 4480 characters]"), 0.17855693, PackedByteArray("qgCrAKwArACrAAQArAAEAAUArAAFAAIAqgCsAAIAqgACAAMAqgADAAAAqwABAAQArQCqAAAAqgCtAKsArQAAAAcArQAHAAYAqwCtAAYAqwAGAAEABgAIAAkABgAJAAoAAQAGAAoAAQAKAAsADAABAAsADAALAA0ACwAKAK4ACgARAK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AA8AEQASAAoACgASAA8AEwAPABIAFAATABUAFAAWABMAFgAPABMAFgAXAA8AFwAYAA8AFwAZABgAGgAbABwAGgAdABsAHgAfACAAHgAhAB8AIgAjACQAJAAjACUAJAAlACYAIgAnACMAJwAiACgAJwAoACkAJAAqACsAJAArACwAIgAkACwAIgAsAC0ALgAiAC0ALgAtAC8ALQAsADAAMQAwACwAMgAwADEAMwA0ACwAMQAsADQANQAxADQANgA1ADcANgA4ADUAOAAxADUAOAA5ADEAOQA6ADEAOQA7ADoAPAA9AD4APAA/AD0AQABBAEIAQABDAEEARABFAEYARgBHAEgARgBFAEcARABJAEUASQBEAEoASQBKAEsASQBMAE0ASQBNAE4ARQBJAE4ARQBOAE8AUABFAE8AUABPAFEATwBOAFIATgBTAFIAVABSAFMAVQBWAE4ATgBWAFMAVwBTAFYAWABXAFkAWABaAFcAWgBTAFcAWgBbAFMAWwBcAFMAWwBdAFwAXgBfAGAAXgBhAF8AYgBjAGQAYgBlAGMAZgBnAGgAaABnAGkAaABpAGoAZgBrAGcAawBmAGwAawBsAG0AaABuAG8AaABvAHAAZgBoAHAAZgBwAHEAcgBmAHEAcgBxAHMAcQBwAHQAdQB0AHAAdgB0AHUAdwB4AHAAdQBwAHgAeQB1AHgAegB5AHsAegB8AHkAfAB1AHkAfAB9AHUAfQB+AHUAfQB/AH4AgACBAIIAgACDAIEAhACFAIYAhACHAIUAiACJAIoAiACKAIsAiQCMAI0AiQCOAIwAiACOAIkAjgCIAI8AiwCQAJEAiwCRAJIAiACLAJIAiACSAJMAlACIAJMAlACTAJUAkwCSAJYAlwCWAJIAmACWAJcAmQCaAJIAlwCSAJoAmwCXAJoAnACbAJ0AnACeAJsAngCXAJsAngCfAJcAnwCgAJcAnwChAKAAogCjAKQAogClAKMApgCnAKgApgCpAKcA")],
"material": SubResource("StandardMaterial3D_7mvdw"),
"name": "Player1Mtl",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 671,
"vertex_data": PackedByteArray("[encoded data, 17896 characters]")
}]
shadow_mesh = SubResource("ArrayMesh_e57bw")

[node name="Player" type="CharacterBody3D"]
collision_layer = 2
collision_mask = 3
script = ExtResource("1_onrkg")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0)
shape = SubResource("BoxShape3D_onrkg")

[node name="Pivot" type="Node3D" parent="."]

[node name="PlayerMesh" type="MeshInstance3D" parent="Pivot"]
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, -100, 0)
mesh = SubResource("ArrayMesh_sweqy")
skeleton = NodePath("")

[node name="Container" type="Node3D" parent="Pivot"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.5, 2.5, -1.5)

[node name="CameraGimbal" type="Node3D" parent="."]
script = ExtResource("2_onrkg")

[node name="InnerGimbal" type="Node3D" parent="CameraGimbal"]

[node name="Camera3D" type="Camera3D" parent="CameraGimbal/InnerGimbal"]
transform = Transform3D(1, 0, 0, 0, 0.8660254, 0.5, 0, -0.5, 0.8660254, 0, 8, 8)
current = true

[node name="Backpack" type="Node" parent="."]

[node name="RespawnTimer" type="Timer" parent="."]
wait_time = 4.0
one_shot = true

[node name="Message" type="Label" parent="."]
visible = false
offset_right = 128.0
offset_bottom = 256.0
text = "Pictures of you"
horizontal_alignment = 1
vertical_alignment = 1

[node name="VanishTimer" type="Timer" parent="Message"]
wait_time = 4.0
one_shot = true

[node name="HUD" type="Label" parent="."]
offset_right = 200.0
offset_bottom = 200.0
text = "Pictures of you"
horizontal_alignment = 2
vertical_alignment = 2

[connection signal="child_entered_tree" from="Backpack" to="." method="_on_backpack_child_entered_tree"]
[connection signal="child_exiting_tree" from="Backpack" to="." method="_on_backpack_child_exiting_tree"]
[connection signal="timeout" from="RespawnTimer" to="." method="respawn"]
[connection signal="timeout" from="Message/VanishTimer" to="." method="_on_vanish_timer_timeout"]
