로컬 오프셋

This commit is contained in:
강민제 2025-04-24 01:30:03 +09:00
parent 9d78f53ba3
commit 49f2224f27
2 changed files with 4 additions and 2 deletions

View File

@ -35,5 +35,5 @@ void ABasePawn::BeginPlay()
void ABasePawn::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}

View File

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