[fix] 팔라딘 몬스터 수직 베기 범위 오류 수정 #41

Merged
FioreFlower merged 3 commits from DEG-150-보스몹-공격범위-버그 into main 2025-05-13 01:57:15 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 6938b246dc - Show all commits

BIN
Assets/JYY/Scenes/MonsterTest.unity (Stored with Git LFS)

Binary file not shown.

View File

@ -28,7 +28,7 @@ public class VerticalAoeController : AoeControllerBase
protected override void HitCheck()
{
// 박스 판정 (사각형 직선)
Vector3 halfExtents = new Vector3(_data.radius, 1f, _data.radius * 2f);
Vector3 halfExtents = new Vector3(_data.radius, 1f, _data.radius * 2f) * 0.5f;
Collider[] hits = Physics.OverlapBox(transform.position, halfExtents, transform.rotation, _data.targetLayer);
foreach (var hit in hits)
@ -47,7 +47,7 @@ public class VerticalAoeController : AoeControllerBase
private void OnDrawGizmosSelected()
{
Gizmos.color = Color.red;
Gizmos.color = Color.yellow;
Vector3 center = transform.position;
Vector3 size = new Vector3(_data.radius, 1f, _data.radius * 2f);
Gizmos.matrix = Matrix4x4.TRS(center, transform.rotation, Vector3.one);