[gd_scene load_steps=5 format=3 uid="uid://ul8o2n823qod"]

[ext_resource type="Script" path="res://content/scripts/player.gd" id="1_i6r2s"]
[ext_resource type="Script" path="res://content/scripts/smoother.gd" id="2_dpu6i"]
[ext_resource type="Script" path="res://content/scripts/dampened_camera.gd" id="3_24qwg"]

[sub_resource type="CylinderShape3D" id="CylinderShape3D_tpgoe"]
height = 1.8
radius = 0.25

[node name="Player" type="StaticBody3D" node_paths=PackedStringArray("head", "body", "camera", "collision_shape")]
script = ExtResource("1_i6r2s")
head = NodePath("Body/Head")
body = NodePath("Body")
camera = NodePath("Body/Head/Smoother/Camera3D")
collision_shape = NodePath("MoveCollider")

[node name="MoveCollider" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
shape = SubResource("CylinderShape3D_tpgoe")

[node name="Body" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)

[node name="Head" type="Node3D" parent="Body"]

[node name="Smoother" type="Node3D" parent="Body/Head" node_paths=PackedStringArray("target")]
script = ExtResource("2_dpu6i")
target = NodePath("..")

[node name="Camera3D" type="Camera3D" parent="Body/Head/Smoother" node_paths=PackedStringArray("target")]
script = ExtResource("3_24qwg")
target = NodePath("..")
