diff --git a/Assets/Scripts/Mechanics/EnemyController.cs b/Assets/Scripts/Mechanics/EnemyController.cs index fb6a720..4f73d52 100644 --- a/Assets/Scripts/Mechanics/EnemyController.cs +++ b/Assets/Scripts/Mechanics/EnemyController.cs @@ -22,15 +22,15 @@ namespace Platformer.Mechanics /// 밟기 판정 — Player가 Enemy보다 위 거리. 발 닿는 느낌 영역(0.05~0.15). public float stompMinDy = 0.1f; - // PD 명시 2026-05-08 — 자동 patrol (생성 위치 기준 좌/우 random 100~150 왕복) - public float patrolMinRange = 100f; - public float patrolMaxRange = 150f; + // PD 명시 2026-05-08 — 자동 patrol (생성 위치 기준 좌/우 random 50~75 왕복·BT87 절반 정정) + public float patrolMinRange = 50f; + public float patrolMaxRange = 75f; public float patrolArriveThreshold = 0.5f; public float cliffCheckDistance = 0.3f; // 발 앞 절벽 검출 거리 (BT86: 0.6→0.3 — 더 빠른 검출·낭떠러지 근처 Enemy 보호) public float cliffCheckDepth = 1.5f; // 발 아래 Raycast 거리 public LayerMask groundLayerMask = (1 << 0) | (1 << 16); // Layer 0 (지면) + Layer 16 (발판) - public float stuckThresholdTime = 0.3f; // 벽 정지 검출 시간 (BT86: 0.5→0.3 — 빠른 영역 전환) - public float stuckMoveThreshold = 0.02f; // BT86: 정지 판정 거리 임계값 (0.01→0.02 — 미세 밀림 검출) + public float stuckThresholdTime = 0.1f; // 벽 정지 검출 시간 (BT87: 0.3→0.1 — 움찔거림 차단·즉시 방향 전환) + public float stuckMoveThreshold = 0.02f; // 정지 판정 거리 임계값 (미세 밀림 검출) private float _startX; private float _targetX;