fix: 드로그 기본기3 Idle 복귀 루트모션 차단
- 기본기3 종료 후 Idle 복귀 블렌드 구간에서 수평 루트모션이 적용되지 않도록 차단 - SkillController가 Idle 복귀 블렌드 상태를 직접 노출하고 EnemyBase가 해당 구간만 별도로 처리하도록 정리 - 원인 추적용 Idle 복귀 좌표 로그는 제거하고 기능만 유지
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user