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
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);
}
}