[gd_scene load_steps=9 format=3 uid="uid://bwe2jdmvinhqd"]

[ext_resource type="Script" uid="uid://buwh0g1ga2aka" path="res://src/player/player.gd" id="1_npueo"]
[ext_resource type="Script" uid="uid://cx1yt0drthpw3" path="res://src/player/camera_controller.gd" id="2_veeqv"]
[ext_resource type="PackedScene" uid="uid://cc102xko0u6yj" path="res://src/equipment/point_spray/point_spray.tscn" id="3_6wgkm"]
[ext_resource type="PackedScene" uid="uid://d2hnxr5l6w2x4" path="res://src/equipment/wide_spray/wide_spray.tscn" id="3_ibq07"]
[ext_resource type="Script" uid="uid://cwy3akimaeib" path="res://src/player/tool_mount.gd" id="3_jiejy"]
[ext_resource type="PackedScene" uid="uid://dq1x21tq06dud" path="res://src/ui/hud/player_hud.tscn" id="5_jvafu"]
[ext_resource type="PackedScene" uid="uid://qknkdy6aics1" path="res://src/equipment/toothbrush/toothbrush.tscn" id="6_o822w"]

[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_s7f0r"]
height = 1.9

[node name="Player" type="CharacterBody3D"]
script = ExtResource("1_npueo")

[node name="CameraPivot" type="Node3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
script = ExtResource("2_veeqv")

[node name="ToolMount" type="Node3D" parent="CameraPivot" node_paths=PackedStringArray("initial_tool")]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.15, -0.1, -0.1)
script = ExtResource("3_jiejy")
initial_tool = NodePath("PointSpray")

[node name="PointSpray" parent="CameraPivot/ToolMount" instance=ExtResource("3_6wgkm")]
unique_name_in_owner = true

[node name="WideSpray" parent="CameraPivot/ToolMount" instance=ExtResource("3_ibq07")]
unique_name_in_owner = true
visible = false

[node name="Toothbrush" parent="CameraPivot/ToolMount" instance=ExtResource("6_o822w")]
unique_name_in_owner = true
visible = false

[node name="Camera3D" type="Camera3D" parent="CameraPivot"]
current = true

[node name="InteractRay" type="RayCast3D" parent="CameraPivot/Camera3D"]
unique_name_in_owner = true
target_position = Vector3(0, 0, -1.5)
collision_mask = 2

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0)
shape = SubResource("CapsuleShape3D_s7f0r")

[node name="PlayerHUD" parent="." instance=ExtResource("5_jvafu")]
unique_name_in_owner = true
