]> Untitled Git - william-skin.git/blob - player/player.tscn
2da16ee05203830918789fcc3d84385f2f742d22
[william-skin.git] / player / player.tscn
1 [gd_scene load_steps=11 format=3 uid="uid://cp6xm8gp6csx"]
2
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"]
8
9 [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2yjd0"]
10
11 [sub_resource type="CylinderShape3D" id="CylinderShape3D_ntdse"]
12 radius = 4.0
13
14 [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_sdmc3"]
15
16 [sub_resource type="SphereShape3D" id="SphereShape3D_4dtvp"]
17
18 [sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_frf40"]
19 dof_blur_far_enabled = true
20 dof_blur_far_distance = 20.0
21
22 [node name="player" type="CharacterBody3D"]
23 script = ExtResource("1_h17j6")
24 camera_mode = "unlocked"
25
26 [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
27 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
28 shape = SubResource("CapsuleShape3D_2yjd0")
29
30 [node name="WilliamSkin" parent="." instance=ExtResource("1_sujn1")]
31 unique_name_in_owner = true
32 transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
33
34 [node name="headTurn" type="Area3D" parent="WilliamSkin"]
35 transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0, 0)
36
37 [node name="CollisionShape3D" type="CollisionShape3D" parent="WilliamSkin/headTurn"]
38 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -3.91559)
39 shape = SubResource("CylinderShape3D_ntdse")
40
41 [node name="Area3D" type="Area3D" parent="WilliamSkin"]
42
43 [node name="CollisionShape3D" type="CollisionShape3D" parent="WilliamSkin/Area3D"]
44 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
45 shape = SubResource("CapsuleShape3D_sdmc3")
46
47 [node name="npcTrackPoint" type="Node3D" parent="WilliamSkin/Area3D" groups=["npc-headTrack"]]
48
49 [node name="cameraPivot" type="Node3D" parent="."]
50
51 [node name="SpringArm3D" type="SpringArm3D" parent="cameraPivot"]
52 transform = Transform3D(1, 0, 0, 0, 0.946525, 0.322629, 0, -0.322629, 0.946525, 0, 1.588, 0)
53 shape = SubResource("SphereShape3D_4dtvp")
54
55 [node name="Camera3D" type="Camera3D" parent="cameraPivot/SpringArm3D"]
56 attributes = SubResource("CameraAttributesPractical_frf40")
57 fov = 80.0
58
59 [node name="DebugOverlay" type="CanvasLayer" parent="."]
60 unique_name_in_owner = true
61 visible = false
62 script = ExtResource("3_lokna")
63
64 [node name="DebugDraw3D" type="Control" parent="DebugOverlay"]
65 layout_mode = 3
66 anchors_preset = 0
67 offset_right = 40.0
68 offset_bottom = 40.0
69 script = ExtResource("3_4m0p1")
70
71 [node name="DebugStats" type="MarginContainer" parent="DebugOverlay"]
72 offset_right = 40.0
73 offset_bottom = 40.0
74 script = ExtResource("5_n0cdm")
75
76 [node name="VBoxContainer" type="VBoxContainer" parent="DebugOverlay/DebugStats"]
77 layout_mode = 2
78
79 [connection signal="area_entered" from="WilliamSkin/headTurn" to="." method="_on_head_turn_area_entered"]
80 [connection signal="area_exited" from="WilliamSkin/headTurn" to="." method="_on_head_turn_area_exited"]