[gd_scene load_steps=16 format=3 uid="uid://cj25f7gkne3m5"]

[ext_resource type="Script" path="res://entities/player/Player.gd" id="1_qvxk1"]
[ext_resource type="PackedScene" uid="uid://cjtln1brv5njd" path="res://entities/GridBasedMovable.tscn" id="1_yi73l"]
[ext_resource type="PackedScene" uid="uid://2ejyjbxihw1j" path="res://entities/player/player_robot.glb" id="3_3ogh4"]
[ext_resource type="ArrayMesh" uid="uid://dxbwd4lpboue6" path="res://entities/player/player_robot.obj" id="3_4tcrj"]
[ext_resource type="Script" path="res://entities/player/playertools/PlayerToolManager.gd" id="3_u5s57"]
[ext_resource type="Shader" uid="uid://bt1b26ask6lmt" path="res://entities/player/Playeranim_mat.tres" id="5_u6prk"]
[ext_resource type="Material" uid="uid://st2d73wbhj7" path="res://entities/objects/tools/PlayerTools01.material" id="7_lkukr"]
[ext_resource type="PackedScene" uid="uid://dgchngvqkam5r" path="res://entities/player/playertools/pull_tool_attached.tscn" id="7_m7tvc"]
[ext_resource type="ArrayMesh" uid="uid://6yigk3c1ugdh" path="res://entities/player/playertools/push_tool_attached.obj" id="7_tkix3"]
[ext_resource type="PackedScene" uid="uid://m38l4lmo1t7p" path="res://entities/player/playertools/grinding_tool_attached.tscn" id="8_s2ism"]
[ext_resource type="Script" path="res://entities/player/playertools/grinding_tool_attached.gd" id="9_fc70a"]
[ext_resource type="PackedScene" uid="uid://c2jobsx0clplx" path="res://entities/player/playertools/cleaning_tool_attached.tscn" id="9_huqpk"]
[ext_resource type="PackedScene" uid="uid://l3rfhxnw8nmc" path="res://entities/player/components/HeadLight.tscn" id="13_a885t"]
[ext_resource type="Script" path="res://entities/player/components/BombCounter.gd" id="14_plp5v"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_k88tj"]
render_priority = 0
shader = ExtResource("5_u6prk")

[node name="Player" groups=["player", "pushable"] instance=ExtResource("1_yi73l")]
collision_layer = 2
collision_mask = 5
script = ExtResource("1_qvxk1")
can_pull = true
tool_change_time = 0.1
enable_rotation = true

[node name="PlayerToolManager" type="Node3D" parent="RotationPoint" index="0"]
script = ExtResource("3_u5s57")

[node name="PushToolMesh" type="MeshInstance3D" parent="RotationPoint/PlayerToolManager" index="0"]
visible = false
layers = 2
mesh = ExtResource("7_tkix3")
skeleton = NodePath("")
surface_material_override/0 = ExtResource("7_lkukr")

[node name="pull_tool_attached" parent="RotationPoint/PlayerToolManager" index="1" instance=ExtResource("7_m7tvc")]
visible = false

[node name="cleaning_tool_attached" parent="RotationPoint/PlayerToolManager" index="2" instance=ExtResource("9_huqpk")]
visible = false

[node name="grinding_tool_attached" parent="RotationPoint/PlayerToolManager" index="3" instance=ExtResource("8_s2ism")]
script = ExtResource("9_fc70a")

[node name="AnimatedMesh" parent="RotationPoint" index="2" instance=ExtResource("3_3ogh4")]

[node name="StaticMesh" parent="RotationPoint" index="3"]
visible = false
mesh = ExtResource("3_4tcrj")
surface_material_override/0 = SubResource("ShaderMaterial_k88tj")

[node name="Light" parent="RotationPoint" index="4" instance=ExtResource("13_a885t")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.527381, 0.943825, -0.72225)
visible = false

[node name="Light2" parent="RotationPoint" index="5" instance=ExtResource("13_a885t")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.526577, 0.940809, -0.750476)
visible = false

[node name="DetectionArea" parent="." index="3"]
collision_layer = 2
collision_mask = 37

[node name="RayCastFront" parent="RC_Holder" index="0"]
target_position = Vector3(0, 0, 0.6)
collision_mask = 45

[node name="RayCastDownRamp" parent="RC_Holder" index="1"]
collision_mask = 45

[node name="RayCastBack" parent="RC_Holder" index="3"]
collision_mask = 37

[node name="RayCastGround" parent="RC_Holder" index="4"]
collision_mask = 37

[node name="ToolManager" type="Node" parent="." index="6"]

[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="." index="8"]
attenuation_model = 3
unit_size = 100.0

[node name="BombCounter" type="Node" parent="." index="9"]
script = ExtResource("14_plp5v")

[node name="DefaultAttachedCam" type="Camera3D" parent="." index="10"]
transform = Transform3D(0.948498, -0.225993, 0.221988, -0.0247417, 0.645766, 0.763134, -0.315815, -0.729324, 0.606917, 10.3795, 50.8927, 36.6674)
current = true
fov = 22.5
size = 40.0
near = 10.0
far = 5000.0

[connection signal="no_health" from="Health" to="." method="_on_Health_no_health"]

[editable path="RC_Holder"]
