fix(BT12-Dev): Enemy ↔ Enemy IgnoreLayerCollision + scale 1.7 → 1.19 (30% 영역)

PD: "몬스터끼리 충돌하지 않고 통과"
PD: "몬스터 크기 30% 영역"

fix:
1. Enemy ↔ Enemy IgnoreLayerCollision
   - Physics2D.IgnoreLayerCollision(14, 14, true)
   - EnemyController.Awake 영역 (idempotent·매번 호출 무관)
2. Enemy.prefab transform.localScale 1.7 → 1.19 (30% 영역)
   - Scene 영역 16 instance prefab override 자동 영역
   - sprite·BoxCollider·CapsuleCollider 비례 영역

회귀 영역 X:
- Enemy ↔ Player IgnoreCollision (Layer 14 ↔ Layer 13 별도) 정합
- Enemy ↔ 발판 IgnoreCollision (PlatformEffector2D 별도) 정합
- KinematicObject minMoveDistance·shellRadius 절대값 정합

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
깃 관리자 2026-05-11 01:39:54 +09:00
parent 38031279d1
commit 81898adab6
2 changed files with 5 additions and 1 deletions

View File

@ -35,7 +35,7 @@ Transform:
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 5.508, y: 1.832, z: 1}
m_LocalScale: {x: 1.7, y: 1.7, z: 1}
m_LocalScale: {x: 1.19, y: 1.19, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}

View File

@ -101,6 +101,10 @@ namespace Platformer.Mechanics
}
}
// BT12-Dev 2026-05-11 — Enemy ↔ Enemy IgnoreLayerCollision (PD 지시: 몬스터 영역 통과)
// Layer 14 (Enemy) ↔ Layer 14 collide X·전역 1회 적용 (Awake 영역 매번 호출 무관·idempotent).
Physics2D.IgnoreLayerCollision(14, 14, true);
// PD 명시 2026-05-08 — 자동 patrol 시작 위치 저장 (측정·target은 Start 시점)
_startX = transform.position.x;
_startY = transform.position.y; // BT102: 떨어짐 검출 기준