fix: resolve dodge bug
This commit is contained in:
parent
c9a138e1ab
commit
7a47ee69bb
Binary file not shown.
Binary file not shown.
|
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user