fix(BT12-Dev): 사망 y -0.5→-0.3 + 게임 시작 파이어볼 정지 fix (PD 지시 2026-05-13)
작업 1 — 사망 모션 y -0.5 → -0.3 (EnemyDeath·PlayerDeath) 작업 2 — 게임 시작 시 파이어볼 투사체 정지·잔존 fix: - ProjectileSpawner.Trigger — facing.sqrMagnitude < 0.01f 시 Vector2.right fallback - 원인: Player.Facing 영역 (0,0) 영역 → _direction = (0,0) → _speed × deltaTime × (0,0) = 0 → 정지 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
32ab76fcde
commit
56a4a362a5
|
|
@ -33,8 +33,8 @@ namespace Platformer.Gameplay
|
|||
// BT12-Dev 2026-05-10 — Enemy.controller 영역 Idle/Run/Hurt → Death transition 추가 후 정합 발동.
|
||||
// BT12-Dev 2026-05-10 근본 fix — Time.timeScale = 0 (카드 선택 모드) 영역 Animator Update Mode = Normal 정지 회피.
|
||||
// updateMode = UnscaledTime 영역 → timeScale 영향 X · death animation 정합 재생 + transition 정합 발동.
|
||||
// PD 지시 2026-05-13 — 사망 모션 시각 위치 보정 y -0.5 (Animator death 영역 sprite 위로 떠 보이는 현상 정정)
|
||||
enemy.transform.position += new Vector3(0f, -0.5f, 0f);
|
||||
// PD 지시 2026-05-13 — 사망 모션 시각 위치 보정 y -0.3 (Animator death 영역 sprite 위로 떠 보이는 현상 정정)
|
||||
enemy.transform.position += new Vector3(0f, -0.3f, 0f);
|
||||
|
||||
var animator = enemy.GetComponent<Animator>();
|
||||
if (animator != null)
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ namespace Platformer.Gameplay
|
|||
if (player.audioSource && player.ouchAudio)
|
||||
player.audioSource.PlayOneShot(player.ouchAudio);
|
||||
|
||||
// PD 지시 2026-05-13 — 사망 모션 시각 위치 보정 y -0.5 (sprite 위로 떠 보이는 현상 정정)
|
||||
player.transform.position += new Vector3(0f, -0.5f, 0f);
|
||||
// PD 지시 2026-05-13 — 사망 모션 시각 위치 보정 y -0.3 (sprite 위로 떠 보이는 현상 정정)
|
||||
player.transform.position += new Vector3(0f, -0.3f, 0f);
|
||||
|
||||
player.animator.SetTrigger("hurt");
|
||||
player.animator.SetBool("dead", true);
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@ namespace EerieVillage.Skills.Effectors
|
|||
Vector2 facing = Vector2.right;
|
||||
var pc = inventory.GetComponent<PlayerController>();
|
||||
if (pc != null) facing = pc.Facing;
|
||||
// PD 지시 2026-05-13 — 게임 시작 시 Player.Facing=(0,0) 영역 fallback (정지·잔존 투사체 차단)
|
||||
if (facing.sqrMagnitude < 0.01f) facing = Vector2.right;
|
||||
|
||||
// PD 정합 2026-05-13 — OffsetDistance.x = facing 방향 거리·OffsetDistance.y = 직각 거리·OffsetXY = 이펙트 절대
|
||||
Vector2 perpDir = new Vector2(-facing.y, facing.x);
|
||||
|
|
|
|||
Loading…
Reference in New Issue