Fix LookAtRotationn
This commit is contained in:
parent
6d2d0d8146
commit
aaf94c7d57
|
@ -29,6 +29,6 @@ void ASplineCameraVolume::Tick(float DeltaSeconds)
|
||||||
if (IsActive && LookAtPlayer && TankPlayerCharacter)
|
if (IsActive && LookAtPlayer && TankPlayerCharacter)
|
||||||
{
|
{
|
||||||
TankPlayerCharacter->CameraComponent->SetWorldRotation(UKismetMathLibrary::FindLookAtRotation(
|
TankPlayerCharacter->CameraComponent->SetWorldRotation(UKismetMathLibrary::FindLookAtRotation(
|
||||||
TankPlayerCharacter->GetTransform().GetLocation(), TankPlayerCharacter->GetTransform().GetLocation()));
|
TankPlayerCharacter->CameraComponent->GetComponentToWorld().GetLocation(), TankPlayerCharacter->GetTransform().GetLocation()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue