重构拖动物品功能

This commit is contained in:
2026-10-08 17:22:02 +08:00
parent 8e463d9247
commit 475a026604
4 changed files with 53 additions and 556 deletions
+6 -25
View File
@@ -12,7 +12,6 @@
[ext_resource type="AnimationLibrary" uid="uid://dy8a178vlbsof" path="res://character/player/assets/animations/sneak.glb" id="8_jo6ux"]
[ext_resource type="AnimationLibrary" uid="uid://db83440o2cyr7" path="res://character/player/assets/animations/walk.glb" id="9_fkbv7"]
[ext_resource type="Script" uid="uid://c6l2fl5jgvr1h" path="res://character/player/face/face_rig.gd" id="12_lqp71"]
[ext_resource type="Script" uid="uid://cca1hl0g2bku" path="res://character/player/carry_arms.gd" id="13_carryarms"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_rkbax"]
radius = 0.54541016
@@ -32,8 +31,12 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
[node name="Camera" type="Camera3D" parent="CameraRig" unique_id=52294557]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.6066488, -0.11179829)
[node name="CarrySocket" type="Marker3D" parent="CameraRig" unique_id=570180284]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.8, -1)
[node name="InteractionRay" type="RayCast3D" parent="CameraRig/Camera" unique_id=388601766]
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 0, 0)
target_position = Vector3(0, 0.45, 0)
[node name="InteractionPos" type="Marker3D" parent="CameraRig/Camera" unique_id=816323614]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.44393378)
[node name="Body" type="Node3D" parent="." unique_id=394283421]
@@ -51,30 +54,8 @@ libraries/sneak = ExtResource("8_jo6ux")
libraries/walk = ExtResource("9_fkbv7")
script = ExtResource("3_g20gq")
[node name="CarryArms" type="Node" parent="Body" unique_id=301629134]
process_priority = 100
script = ExtResource("13_carryarms")
[node name="Sync" type="MultiplayerSynchronizer" parent="." unique_id=1979575210]
replication_config = ExtResource("3_wu8e1")
[node name="HealthLabel" type="Label3D" parent="." unique_id=300336561]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.05, 0)
billboard = 1
no_depth_test = true
text = "HP 100 / 100"
font_size = 64
outline_size = 8
[node name="InteractHint" type="Label3D" parent="." unique_id=1718788495]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.75, 0)
visible = false
billboard = 1
no_depth_test = true
modulate = Color(1, 0.95, 0.6, 1)
text = "按 E 挂上滑索"
font_size = 48
outline_size = 8
[node name="FaceRig" type="Node" parent="." unique_id=792293233]
script = ExtResource("12_lqp71")