1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

fix(Statemachine): 修正获取追踪锚点位置的方法

使用 hurtbox 的子节点 hitbox 的全局位置作为追踪锚点,以更准确地反映碰撞区域位置
This commit is contained in:
2025-09-18 22:20:13 +08:00
parent e70918a391
commit 71e90c4155
+1 -1
View File
@@ -346,7 +346,7 @@ func playSound(type: String):
cloned.queue_free()
func getTrackingAnchor() -> Vector2:
return hurtbox.global_position
return hurtbox.get_node("hitbox").global_position
# 关于分组
func isPlayer():