fix(BT12-Dev): Level Tilemap Composite Collider + Static Rb (지형 밀려나는 현상 정정)

PD: "바닥에 플레이어가 닿으면 천천히 밀려나는 현상이 있어. 정상적인 지형처럼 보이도록 수정해줘"

근본 — MCP 자율 실측:
- Level Tilemap (Layer 0): TilemapCollider2D만·CompositeCollider2D NULL·Rb NULL
- Tile 9180개 (10종)·colliderType=Sprite — 각 Tile 별도 BoxCollider
- Tile 경계 hit normal=(±1,0) → Player KinematicObject (KinematicObject.cs:128-173)
  Cast hit normal.y < 0.65 → IsGrounded=false → velocity.x=0 (line 164) → 밀려나는 현상

fix — Composite Collider 표준 패턴:
- TilemapCollider2D.compositeOperation = Merge (Unity 6 — m_UsedByComposite 폐기)
- CompositeCollider2D 추가 (geometryType=Outlines·generationType=Synchronous)
- Rigidbody2D Static (simulated=true·sleepMode=NeverSleep)
- Level GameObject SetActive(true) — 영역 영역 영역 영역 정정
- 결과: Composite pointCount=682·pathCount=35·bounds Extents=(78,12.4)
  → Tile 경계 hit X·외곽선 normal=(0,1)만 → IsGrounded true·velocity.x 보존

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
깃 관리자 2026-05-10 21:31:31 +09:00
parent 2b8828bf37
commit b0ea32d5ac
1 changed files with 3170 additions and 1 deletions

File diff suppressed because it is too large Load Diff