fix: 드로그 기본기3 Idle 복귀 루트모션 차단

- 기본기3 종료 후 Idle 복귀 블렌드 구간에서 수평 루트모션이 적용되지 않도록 차단

- SkillController가 Idle 복귀 블렌드 상태를 직접 노출하고 EnemyBase가 해당 구간만 별도로 처리하도록 정리

- 원인 추적용 Idle 복귀 좌표 로그는 제거하고 기능만 유지
This commit is contained in:
2026-04-21 16:54:30 +09:00
parent dadaa56511
commit 6d038f07ff
2 changed files with 56 additions and 1 deletions

View File

@@ -216,6 +216,17 @@ namespace Colosseum.Enemy
deltaPosition.z = 0f;
}
// 패턴 마지막 스킬이 Idle로 복귀하는 짧은 블렌드 구간에서는
// Idle 클립의 수평 루트모션이 섞여 뒤로 밀리는 현상을 막습니다.
bool shouldSuppressPostPatternIdleHorizontalRootMotion =
skillCtrl != null
&& skillCtrl.IsSuppressingIdleRecoveryHorizontalRootMotion;
if (shouldSuppressPostPatternIdleHorizontalRootMotion)
{
deltaPosition.x = 0f;
deltaPosition.z = 0f;
}
bool shouldProjectRootMotionToFacing = skillCtrl != null && skillCtrl.ShouldProjectHorizontalRootMotionToFacing;
if (shouldProjectRootMotionToFacing)
deltaPosition = ProjectHorizontalDeltaOntoFacing(deltaPosition);