1 [gd_scene load_steps=10 format=3 uid="uid://cp6xm8gp6csx"]
3 [ext_resource type="Script" path="res://player/player.gd" id="1_h17j6"]
4 [ext_resource type="PackedScene" uid="uid://2tvylmtejq0u" path="res://william.tscn" id="1_sujn1"]
5 [ext_resource type="Script" path="res://ux/debug_draw_3d.gd" id="3_4m0p1"]
6 [ext_resource type="Script" path="res://ux/debug_overlay.gd" id="3_lokna"]
7 [ext_resource type="Script" path="res://ux/debug_stats.gd" id="5_n0cdm"]
9 [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2yjd0"]
11 [sub_resource type="SphereShape3D" id="SphereShape3D_4dtvp"]
13 [sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_frf40"]
14 dof_blur_far_enabled = true
15 dof_blur_far_distance = 20.0
17 [sub_resource type="CylinderShape3D" id="CylinderShape3D_ntdse"]
20 [node name="player" type="CharacterBody3D"]
21 script = ExtResource("1_h17j6")
22 camera_mode = "unlocked"
24 [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
25 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
26 shape = SubResource("CapsuleShape3D_2yjd0")
28 [node name="WilliamSkin" parent="." instance=ExtResource("1_sujn1")]
29 unique_name_in_owner = true
30 transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.027907, 0)
32 [node name="cameraPivot" type="Node3D" parent="."]
34 [node name="SpringArm3D" type="SpringArm3D" parent="cameraPivot"]
35 transform = Transform3D(1, 0, 0, 0, 0.946525, 0.322629, 0, -0.322629, 0.946525, 0, 1.588, 0)
36 shape = SubResource("SphereShape3D_4dtvp")
38 [node name="Camera3D" type="Camera3D" parent="cameraPivot/SpringArm3D"]
39 attributes = SubResource("CameraAttributesPractical_frf40")
42 [node name="headTurn" type="Area3D" parent="."]
44 [node name="CollisionShape3D" type="CollisionShape3D" parent="headTurn"]
45 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
46 shape = SubResource("CylinderShape3D_ntdse")
48 [node name="DebugOverlay" type="CanvasLayer" parent="."]
49 unique_name_in_owner = true
51 script = ExtResource("3_lokna")
53 [node name="DebugDraw3D" type="Control" parent="DebugOverlay"]
58 script = ExtResource("3_4m0p1")
60 [node name="DebugStats" type="MarginContainer" parent="DebugOverlay"]
63 script = ExtResource("5_n0cdm")
65 [node name="VBoxContainer" type="VBoxContainer" parent="DebugOverlay/DebugStats"]
68 [connection signal="area_entered" from="headTurn" to="." method="_on_head_turn_area_entered"]
69 [connection signal="area_exited" from="headTurn" to="." method="_on_head_turn_area_exited"]