로컬 오프셋
This commit is contained in:
parent
9d78f53ba3
commit
49f2224f27
@ -35,5 +35,5 @@ void ABasePawn::BeginPlay()
|
||||
void ABasePawn::Tick(float DeltaTime)
|
||||
{
|
||||
Super::Tick(DeltaTime);
|
||||
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user