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

View File

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