removed duplicate files

This commit is contained in:
2025-11-21 15:50:35 -05:00
parent 84f62de157
commit 40293a9c03
12 changed files with 7 additions and 1 deletions

View File

@@ -179,7 +179,6 @@ void ADDICharacter::MoveInput(const FInputActionValue& Value)
{ {
// get the Vector2D move axis // get the Vector2D move axis
FVector2D MovementVector = Value.Get<FVector2D>(); FVector2D MovementVector = Value.Get<FVector2D>();
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Red, "Move started");
// pass the axis values to the move input // pass the axis values to the move input
DoMove(MovementVector.X, MovementVector.Y); DoMove(MovementVector.X, MovementVector.Y);
} }
@@ -206,11 +205,18 @@ void ADDICharacter::DoAim(float Yaw, float Pitch)
void ADDICharacter::DoMove(float Right, float Forward) 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()) if (GetController())
{ {
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Red, "Past controller");
// pass the move inputs // pass the move inputs
AddMovementInput(GetActorRightVector(), Right); AddMovementInput(GetActorRightVector(), Right);
AddMovementInput(GetActorForwardVector(), Forward); AddMovementInput(GetActorForwardVector(), Forward);
// AddMovementInput(CurrentRotation.RotateVector(FVector::RightVector), Right);
// AddMovementInput(CurrentRotation.RotateVector(FVector::ForwardVector), Forward);
} }
} }