fix(BT12-Dev): A05 좌우 베기 이펙트 Player 동조 (PD 지시 2026-05-13)

원인: MeleeAreaSpawner 이펙트 spawn 후 SetParent 미적용.
spawn 시점 world 좌표에서 freeze 되어 Player 전진 시
이펙트가 뒤로 밀려 보이는 현상.
박스(판정) 는 이미 Player 자식 부착이라 동조 정상.

정정:
- fxGo.transform.SetParent(inventory.transform, true)
- worldPositionStays=true 로 spawn 직후의 world 위치·rotation·scale 유지
  + Player 이동에 자동 동조.

검증 (Play 모드):
- Player x: -7 → -5 (Δ+2.0) 이동
  - FX worldPos: -6.80 → -4.80 (Δ+2.0) ✓
  - BOX worldPos: -7.00 → -5.00 (Δ+2.0) ✓

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
깃 관리자 2026-05-13 17:37:15 +09:00
parent ea7d32f437
commit f6c6eb5ef5
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ namespace EerieVillage.Skills.Effectors
Vector3 s = fxGo.transform.localScale * data.HitFxScale;
if (facing.x < 0f) s.x = -Mathf.Abs(s.x);
fxGo.transform.localScale = s;
// PD 지시 2026-05-13 — 좌우 베기 이펙트가 Player 이동 시 뒤로 밀리는 현상 정정.
// Player 자식 부착 (worldPositionStays=true) 으로 spawn 후에도 Player 이동에 동조.
fxGo.transform.SetParent(inventory.transform, true);
fxLifetime = GetFxLifetime(fxGo);
Object.Destroy(fxGo, fxLifetime + 0.2f);
}