Commit Graph

2 Commits

Author SHA1 Message Date
깃 관리자 c9b39c4373 BT5-Dev #68: 점프 X·Y 분리 + TileGround* 벽 자동 분류 제외 (PD 2종 명시 채택)
PD 명시 (2026-05-08):
1. "대각선으로 점프로 벽 부분을 통과하려는 상황 → Player 점프 상태에서 밀려나는 현상" (애초에 통과 X 의무)
2. "전진하며 점프할 경우 앞이 막혀있으면 위로만 점프되어야 하는데 점프 자체가 막힘" (앞 막혀도 정상 점프 의무)

본 PM 직접 read 진단:

버그 1 (벽 통과) 원인:
- 자동 분류 영역(BT47/BT48)이 TileGround·TileGroundDark·TileGroundTop도 AutoForeground로 이동
- AutoForeground = Layer 16 + Drop-Through 패턴 (ascending mask OFF)
- = 대각선 점프 시 벽 Tile 통과 가능

버그 2 (점프 막힘) 원인:
- KinematicObject.PerformMovement line 164~165:
  velocity.x *= 0;  velocity.y = Mathf.Min(velocity.y, 0);
- = X 이동 시점 hit (앞 벽)에서도 velocity.y 영점 강제
- = 점프 시작 시 앞 벽 hit → 점프 속도 0 → 점프 자체 차단

정정:

1. KinematicObject.cs (버그 2):
   - 공중 hit 처리 X·Y 분리:
     - X 이동 시점 hit (앞 벽) → velocity.x = 0, velocity.y 보존 (점프 속도 유지)
     - Y 이동 시점 hit (천장) → velocity.x·y 모두 cap (기존)

2. GameOptimizer.cs (버그 1):
   - TileGround* (3종 — 지면·벽 의도) 자동 분류 제외 추가
   - tileAsset.name.StartsWith("TileGround") → continue
   - TileGround·TileGroundDark·TileGroundTop = Level 잔존·Layer 0·영구 충돌·통과 X

효과:
- 버그 1: 벽 통과 X (TileGround* = Layer 0 영구 충돌)
- 버그 2: 앞 막혀도 위로 점프 정합 (Y 속도 보존)
- 발판 동작 그대로 (TileFloating·MidgroundFiller·Building·cloud·hillside·midground·mountains 자동 분류)
- 나무·plant·fence·house 자체 통과 그대로

후속 의무:
- PD Refresh+Play 시각 검증 (대각선 점프 벽 통과 X + 앞 막힌 점프 작동)
- 본 PM Editor.log [BT48-MoveTiles] direct read
2026-05-08 00:20:53 +09:00
깃 관리자 9f689c1661 initial: Unity 6000.3.13f1 LTS 2D PlatformerMicrogame 템플릿 + GitAutoSync Editor 스크립트
- Unity 2D PlatformerMicrogame 기본 템플릿 자산 전수
- Assets/Editor/GitAutoSync/GitAutoSync.cs — BT5-Dev C안 Unity Editor 자동 sync trigger
  · InitializeOnLoad → auto pull · quitting → auto push · Tools/Git Menu 수동 옵션
  · 실제 git 작업은 BT 본 레포 scripts/unity_auto_sync.sh 가 수행 (Process.Start 호출)
- .gitignore — Unity 표준 (Library/·Temp/·Logs/·UserSettings/·IDE·빌드 산출물 제외)

조직: BurningTimes / 프로젝트: EerieVillage (기묘한 고을 : 조선퇴마뎐)
근거: PD BT5-Dev C안 승인 (2026-04-23)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 00:58:44 +09:00