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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user