How to shift PC Focal Location

Hey Answerhub,

I’m using my player controller’s GetFocalLocation() vector for my line trace. However, the focal location is a bit too low for my character, as the camera/eye height is set a little higher.

Does anyone know how to get a higher focal location? I’ve tried adding another Z vector to the focal location vector, but that doesn’t seem to work.

Check out this example in the doc on how to use a line trace without using GetFocalLocation(), that way you can start you line trace from any point to another. P.S. the “1500” value they used specifies the distance, if your object is really far away you might need to use a higher value.
https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseRaycasts/Blueprints/

Looking to use line traces in C++ instead as a way to learn the language.

I got what I was looking for by replacing

GetFocalLocation()

with

PlayerCameraManger->GetCameraLocation()

in the PlayerController class if anyone was interested.

Much appreciated NWatcher