diff --git a/Source/tank/SplineCameraVolume.cpp b/Source/tank/SplineCameraVolume.cpp index 01ffa27..7c5975a 100644 --- a/Source/tank/SplineCameraVolume.cpp +++ b/Source/tank/SplineCameraVolume.cpp @@ -29,6 +29,6 @@ void ASplineCameraVolume::Tick(float DeltaSeconds) if (IsActive && LookAtPlayer && TankPlayerCharacter) { TankPlayerCharacter->CameraComponent->SetWorldRotation(UKismetMathLibrary::FindLookAtRotation( - TankPlayerCharacter->GetTransform().GetLocation(), TankPlayerCharacter->GetTransform().GetLocation())); + TankPlayerCharacter->CameraComponent->GetComponentToWorld().GetLocation(), TankPlayerCharacter->GetTransform().GetLocation())); } }