fix: 플레이어-보스 충돌 슬라이딩 및 관통 방지
- CharacterController.enableOverlapRecovery 비활성화로 자동 밀어냄 제거 - 레이어 마스크 의존 제거, 컴포넌트(NavMeshAgent/CharacterController)로 식별 - EnemyBase LateUpdate에서 velocity 기반 보스 위치 보정 - EnemyBase OnAnimatorMove에서 루트모션의 플레이어 방향 이동 차단 - BossEnemy Update를 OnServerUpdate 패턴으로 리팩터링 - 보스 프리팹 하위 오브젝트 레이어 Enemy로 통일 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -105,14 +105,11 @@ namespace Colosseum.Enemy
|
||||
customConditions.Clear();
|
||||
}
|
||||
|
||||
private void Update()
|
||||
protected override void OnServerUpdate()
|
||||
{
|
||||
if (!IsServer || IsDead || isTransitioning)
|
||||
return;
|
||||
if (isTransitioning) return;
|
||||
|
||||
phaseElapsedTime = Time.time - phaseStartTime;
|
||||
|
||||
// 다음 페이즈 전환 조건 확인
|
||||
CheckPhaseTransition();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user