diff --git a/Assets/Scripts/Skills/Effectors/HitboxDebug.cs b/Assets/Scripts/Skills/Effectors/HitboxDebug.cs index 62793bb..a211b43 100644 --- a/Assets/Scripts/Skills/Effectors/HitboxDebug.cs +++ b/Assets/Scripts/Skills/Effectors/HitboxDebug.cs @@ -8,9 +8,9 @@ namespace EerieVillage.Skills.Effectors /// public static class HitboxDebug { - // PD 지시 2026-05-13 — 디버그 박스·사거리 박스 시각화 off (재활용 영역 true 설정 시 즉시 노출) - // GameObject·LiveHitboxSync 부착 영역 정상 — SpriteRenderer 활성화 영역만 toggle. - public static bool ShowDebugVisuals = false; + // PD 지시 2026-05-14 — 투사체 판정 범위 다시 보여줘 → true. + // GameObject·LiveHitboxSync 부착 정상 — SpriteRenderer 활성화만 toggle. + public static bool ShowDebugVisuals = true; /// 지정 world 좌표·size 박스 spawn·lifetime 후 destroy. lifetime=0 영역 영구. public static GameObject Spawn(Vector2 pos, Vector2 size, float lifetime) diff --git a/Assets/Scripts/Skills/Effectors/Projectile.cs b/Assets/Scripts/Skills/Effectors/Projectile.cs index f64dc2e..47d836c 100644 --- a/Assets/Scripts/Skills/Effectors/Projectile.cs +++ b/Assets/Scripts/Skills/Effectors/Projectile.cs @@ -193,6 +193,15 @@ namespace EerieVillage.Skills.Effectors int hitCount = Physics2D.OverlapPoint(transform.position, filter, results); if (hitCount > 0) { + // PD 지시 2026-05-14 — 빠른 투사체 맵 경계 멈춤 진단 — OverlapPoint hit 정보 출력 + var hit = results[0]; + Debug.Log("[Projectile][WallHit-OverlapPoint] cardId=" + _data.CardId + + " hit=" + (hit != null ? hit.gameObject.name : "?") + + " parent=" + (hit != null && hit.transform.parent != null ? hit.transform.parent.name : "ROOT") + + " layer=" + (hit != null ? hit.gameObject.layer : -1) + + " pos=" + transform.position + + " dist=" + Vector2.Distance(transform.position, _spawnPosition).ToString("F2") + + "/" + _maxRange); SelfDestruct(); } } @@ -275,6 +284,15 @@ namespace EerieVillage.Skills.Effectors bool isWall = (otherLayer == 0); if (isWall) { + // PD 지시 2026-05-14 — 빠른 투사체 맵 경계 멈춤 진단 — Wall hit collider 정보 출력 + Debug.Log("[Projectile][WallHit-OnTrigger] cardId=" + _data.CardId + + " other=" + other.gameObject.name + + " parent=" + (other.transform.parent != null ? other.transform.parent.name : "ROOT") + + " layer=" + otherLayer + "(" + UnityEngine.LayerMask.LayerToName(otherLayer) + ")" + + " isTrigger=" + other.isTrigger + + " pos=" + transform.position + + " dist=" + Vector2.Distance(transform.position, _spawnPosition).ToString("F2") + + "/" + _maxRange); SelfDestruct(); } }