修复拖拽时物体一卡一卡

This commit is contained in:
2026-10-09 15:32:34 +08:00
parent bc88fef43a
commit d20d45fffc
3 changed files with 47 additions and 6 deletions
+2 -1
View File
@@ -43,7 +43,8 @@ func _ready() -> void:
motor.setup(self, camera_rig)
pickup.setup(
camera.get_node("InteractionRay") as RayCast3D,
camera.get_node("InteractionPos") as Marker3D
camera.get_node("InteractionPos") as Marker3D,
self
)
# 准心接线:拾取组件一发现交互状态变化,就通知准心换外观(点 / 手 / 抓)。
pickup.interact_state_changed.connect(_on_pickup_interact_state_changed)