fix: resolve dodge bug

This commit is contained in:
Foxim 2025-03-13 08:09:12 +01:00
parent c9a138e1ab
commit 7a47ee69bb
4 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,6 @@
#include "Characters/ExoPlayerCharacter.h"
#include "Characters/Components/ShootingComponent.h"
#include "GameFramework/CharacterMovementComponent.h"
#include "Player/InteractionComponent.h"
@ -15,7 +14,7 @@ AExoPlayerCharacter::AExoPlayerCharacter()
ShootingComponent = CreateDefaultSubobject<UShootingComponent>(TEXT("Shooting Component"));
bUseControllerRotationPitch = true;
bUseControllerRotationPitch = false;
bUseControllerRotationYaw = true;
bUseControllerRotationRoll = false;
}
@ -23,5 +22,5 @@ AExoPlayerCharacter::AExoPlayerCharacter()
void AExoPlayerCharacter::BeginPlay()
{
Super::BeginPlay();
check(InteractionComponent && ShootingComponent);
}

View File

@ -2,10 +2,10 @@
#pragma once
#include "Characters/Components/ShootingComponent.h"
#include "Player/InteractionComponent.h"
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include <Player/InteractionComponent.h>
#include <Characters/Components/ShootingComponent.h>
#include "ExoPlayerController.generated.h"
class AExoPlayerCharacter;