diff --git a/Assets/Scripts/Mechanics/PlatformDropThrough.cs b/Assets/Scripts/Mechanics/PlatformDropThrough.cs index 8765b3c..b16df30 100644 --- a/Assets/Scripts/Mechanics/PlatformDropThrough.cs +++ b/Assets/Scripts/Mechanics/PlatformDropThrough.cs @@ -14,7 +14,7 @@ namespace Platformer.Mechanics const int JUMP_THROUGH_LAYER = 8; [Tooltip("발 raycast 기본 거리. velocity 영역에 따라 동적 확대.")] - public float footRayDistance = 0.5f; + public float footRayDistance = 1.0f; Collider2D _self; KinematicObject _ko; @@ -70,7 +70,7 @@ namespace Platformer.Mechanics if (rising) { - // 점프 → 활성 발판 통과 복구 + // BT5-Dev #33 — 활성 해제 = 점프(상승) 시점만. 발판 떠남(낙하)은 활성 유지 (Player 거리 영역 벗어나도 충돌 유지·복구) if (_activePlatform != null) { Physics2D.IgnoreCollision(_self, _activePlatform, true); @@ -83,12 +83,7 @@ namespace Platformer.Mechanics Physics2D.IgnoreCollision(_self, hit.collider, false); _activePlatform = hit.collider; } - else if (falling && hit.collider == null && _activePlatform != null) - { - // 발판 떠남 (낙하) → 활성 해제 - Physics2D.IgnoreCollision(_self, _activePlatform, true); - _activePlatform = null; - } + // BT33 — falling + hit X 영역 활성 해제 영역 폐기 (raycast 거리 일시 벗어남 영역 통과 복구 차단) } void OnDrawGizmosSelected()