# How to shift PC Focal Location

**URL:** <https://forums.unrealengine.com/t/how-to-shift-pc-focal-location/371367>\
**Category:** C++\
**Tags:** debug-trace, unreal-engine, editor, UE4, CPP, question\
**Created:** [September 23, 2016, 6:52am UTC](https://forums.unrealengine.com/t/how-to-shift-pc-focal-location/371367 "2016-09-23T06:52:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mookaroni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mookaroni](https://forums.unrealengine.com/u/Mookaroni)\
**Post date:** [September 23, 2016, 6:52am UTC](https://forums.unrealengine.com/t/how-to-shift-pc-focal-location/371367/1 "2016-09-23T06:52:47Z")

</div>

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.

 ![108179-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/e/d2e72773f9b378f27eda2209438e2a361b70b497.jpeg)

---

<div class="post-metadata">

**Author:** ![Night\_Watcher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/night_watcher/32/1145400_2.png) [@Night\_Watcher](https://forums.unrealengine.com/u/Night_Watcher)\
**Post date:** [September 23, 2016, 6:57am UTC](https://forums.unrealengine.com/t/how-to-shift-pc-focal-location/371367/2 "2016-09-23T06:57:31Z")

</div>

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/](https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseRaycasts/Blueprints/)

---

<div class="post-metadata">

**Author:** ![Mookaroni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mookaroni](https://forums.unrealengine.com/u/Mookaroni)\
**Post date:** [September 23, 2016, 7:22am UTC](https://forums.unrealengine.com/t/how-to-shift-pc-focal-location/371367/3 "2016-09-23T07:22:37Z")

</div>

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
