]> Untitled Git - william-skin.git/blobdiff - player/player.tscn
Track Node3D objects instead of Vector3 so targets aren't static
[william-skin.git] / player / player.tscn
index ebef779c2e46035e1f2356bbd70cdde0c0458aff..e070876a49e0e6a54537fe9ed993bdf94f684553 100644 (file)
@@ -8,15 +8,15 @@
 
 [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2yjd0"]
 
+[sub_resource type="CylinderShape3D" id="CylinderShape3D_ntdse"]
+radius = 4.0
+
 [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 +27,17 @@ 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="npcTrackPoint" type="Node3D" parent="WilliamSkin" groups=["npc-headTrack"]]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.78197, 0)
 
 [node name="cameraPivot" type="Node3D" parent="."]
 
@@ -39,12 +49,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 +69,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"]