X-Git-Url: http://git.purplebirdman.com/william-skin.git/blobdiff_plain/991a7b1300e33ebdb52734e566479263acff8ef3..c92b8f1fd53dee92846473ca69f62de008b07509:/player/player.tscn diff --git a/player/player.tscn b/player/player.tscn index ebef779..2da16ee 100644 --- a/player/player.tscn +++ b/player/player.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=10 format=3 uid="uid://cp6xm8gp6csx"] +[gd_scene load_steps=11 format=3 uid="uid://cp6xm8gp6csx"] [ext_resource type="Script" path="res://player/player.gd" id="1_h17j6"] [ext_resource type="PackedScene" uid="uid://2tvylmtejq0u" path="res://william.tscn" id="1_sujn1"] @@ -8,15 +8,17 @@ [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2yjd0"] +[sub_resource type="CylinderShape3D" id="CylinderShape3D_ntdse"] +radius = 4.0 + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_sdmc3"] + [sub_resource type="SphereShape3D" id="SphereShape3D_4dtvp"] [sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_frf40"] dof_blur_far_enabled = true dof_blur_far_distance = 20.0 -[sub_resource type="CylinderShape3D" id="CylinderShape3D_ntdse"] -radius = 5.0 - [node name="player" type="CharacterBody3D"] script = ExtResource("1_h17j6") camera_mode = "unlocked" @@ -27,7 +29,22 @@ shape = SubResource("CapsuleShape3D_2yjd0") [node name="WilliamSkin" parent="." instance=ExtResource("1_sujn1")] unique_name_in_owner = true -transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.027907, 0) +transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0) + +[node name="headTurn" type="Area3D" parent="WilliamSkin"] +transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0, 0) + +[node name="CollisionShape3D" type="CollisionShape3D" parent="WilliamSkin/headTurn"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -3.91559) +shape = SubResource("CylinderShape3D_ntdse") + +[node name="Area3D" type="Area3D" parent="WilliamSkin"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="WilliamSkin/Area3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) +shape = SubResource("CapsuleShape3D_sdmc3") + +[node name="npcTrackPoint" type="Node3D" parent="WilliamSkin/Area3D" groups=["npc-headTrack"]] [node name="cameraPivot" type="Node3D" parent="."] @@ -39,12 +56,6 @@ shape = SubResource("SphereShape3D_4dtvp") attributes = SubResource("CameraAttributesPractical_frf40") fov = 80.0 -[node name="headTurn" type="Area3D" parent="."] - -[node name="CollisionShape3D" type="CollisionShape3D" parent="headTurn"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) -shape = SubResource("CylinderShape3D_ntdse") - [node name="DebugOverlay" type="CanvasLayer" parent="."] unique_name_in_owner = true visible = false @@ -65,5 +76,5 @@ script = ExtResource("5_n0cdm") [node name="VBoxContainer" type="VBoxContainer" parent="DebugOverlay/DebugStats"] layout_mode = 2 -[connection signal="area_entered" from="headTurn" to="." method="_on_head_turn_area_entered"] -[connection signal="area_exited" from="headTurn" to="." method="_on_head_turn_area_exited"] +[connection signal="area_entered" from="WilliamSkin/headTurn" to="." method="_on_head_turn_area_entered"] +[connection signal="area_exited" from="WilliamSkin/headTurn" to="." method="_on_head_turn_area_exited"]