Fix LookAtRotationn

This commit is contained in:
baz 2024-06-06 00:22:02 +01:00
parent 6d2d0d8146
commit aaf94c7d57
1 changed files with 1 additions and 1 deletions

View File

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