removed duplicate files
This commit is contained in:
@@ -179,7 +179,6 @@ void ADDICharacter::MoveInput(const FInputActionValue& Value)
|
||||
{
|
||||
// get the Vector2D move axis
|
||||
FVector2D MovementVector = Value.Get<FVector2D>();
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Red, "Move started");
|
||||
// pass the axis values to the move input
|
||||
DoMove(MovementVector.X, MovementVector.Y);
|
||||
}
|
||||
@@ -206,11 +205,18 @@ void ADDICharacter::DoAim(float Yaw, float Pitch)
|
||||
|
||||
void ADDICharacter::DoMove(float Right, float Forward)
|
||||
{
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Red, FString::Printf(TEXT("Right: %f, Forward: %f"), Right, Forward));
|
||||
const FRotator CurrentRotation = GetController()->GetControlRotation();
|
||||
if (GetController())
|
||||
{
|
||||
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Red, "Past controller");
|
||||
// pass the move inputs
|
||||
AddMovementInput(GetActorRightVector(), Right);
|
||||
AddMovementInput(GetActorForwardVector(), Forward);
|
||||
|
||||
// AddMovementInput(CurrentRotation.RotateVector(FVector::RightVector), Right);
|
||||
// AddMovementInput(CurrentRotation.RotateVector(FVector::ForwardVector), Forward);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user