void UGrabber::GetViewTrace(FVector &LineTraceEnd,
FVector PlayerViewPointLocation = FVector(),
FRotator PlayerViewPointRotation = FRotator()) const
{
GetWorld()->GetFirstPlayerController()->GetPlayerViewPoint(
OUT PlayerViewPointLocation,
OUT PlayerViewPointRotation
);
LineTraceEnd = PlayerViewPointLocation + PlayerViewPointRotation.Vector() * Reach;
}
Not sure. Is it good version.