From 49f2224f27543413ecd486eecaec6377fc150798 Mon Sep 17 00:00:00 2001 From: 10000Je Date: Thu, 24 Apr 2025 01:30:03 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EC=BB=AC=20=EC=98=A4=ED=94=84?= =?UTF-8?q?=EC=85=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/ToonTanks/BasePawn.cpp | 2 +- Source/ToonTanks/Tank.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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