diff --git a/Source/ToonTanks/BasePawn.cpp b/Source/ToonTanks/BasePawn.cpp index e38882c..52e091e 100644 --- a/Source/ToonTanks/BasePawn.cpp +++ b/Source/ToonTanks/BasePawn.cpp @@ -35,5 +35,5 @@ void ABasePawn::BeginPlay() void ABasePawn::Tick(float DeltaTime) { Super::Tick(DeltaTime); - + } diff --git a/Source/ToonTanks/Tank.cpp b/Source/ToonTanks/Tank.cpp index c459915..66bf574 100644 --- a/Source/ToonTanks/Tank.cpp +++ b/Source/ToonTanks/Tank.cpp @@ -23,5 +23,7 @@ void ATank::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) void ATank::Move(float Value) { - UE_LOG(LogTemp, Warning, TEXT("Move: %f"), Value); + FVector DeltaLocation = FVector::ZeroVector; + DeltaLocation.X = Value; + this->AddActorLocalOffset(DeltaLocation); } \ No newline at end of file