From f6c6eb5ef55051d6efb54781ecdb0e971d8b70db Mon Sep 17 00:00:00 2001 From: swrring Date: Wed, 13 May 2026 17:37:15 +0900 Subject: [PATCH] =?UTF-8?q?fix(BT12-Dev):=20A05=20=EC=A2=8C=EC=9A=B0=20?= =?UTF-8?q?=EB=B2=A0=EA=B8=B0=20=EC=9D=B4=ED=8E=99=ED=8A=B8=20Player=20?= =?UTF-8?q?=EB=8F=99=EC=A1=B0=20(PD=20=EC=A7=80=EC=8B=9C=202026-05-13)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 원인: 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) --- Assets/Scripts/Skills/Effectors/MeleeAreaSpawner.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Scripts/Skills/Effectors/MeleeAreaSpawner.cs b/Assets/Scripts/Skills/Effectors/MeleeAreaSpawner.cs index 161ab4b..f30489c 100644 --- a/Assets/Scripts/Skills/Effectors/MeleeAreaSpawner.cs +++ b/Assets/Scripts/Skills/Effectors/MeleeAreaSpawner.cs @@ -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); }