Hello Devs,
I’m currently able to make a trace from the character’s eyes (-5 units under) to his crosshair using the following :
FVector AimStartingPoint = GetActorLocation() + CameraRelativePosition;
FVector AimEndingPoint = FirstPersonCameraComponent->GetComponentRotation().Vector() * ScanDistance;
DrawDebugLine(GetWorld(), AimStartingPoint + FVector(0, 0, -5), AimEndingPoint, FColor(255, 255, 255));
The problem is that the trace is never going directly to the center of the screen but instead it goes a bit around it.
I don’t know if I’m in the right way or is there another solution to get the camera direction?
Cheers!