# Look At Function returns (0,0,0)

**URL:** <https://forums.unrealengine.com/t/look-at-function-returns-0-0-0/460823>\
**Category:** XR Development\
**Tags:** look-at, unreal-engine, question\
**Created:** [January 21, 2020, 6:52pm UTC](https://forums.unrealengine.com/t/look-at-function-returns-0-0-0/460823 "2020-01-21T18:52:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EmileVDBerghe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EmileVDBerghe](https://forums.unrealengine.com/u/EmileVDBerghe)\
**Post date:** [January 21, 2020, 6:52pm UTC](https://forums.unrealengine.com/t/look-at-function-returns-0-0-0/460823/1 "2020-01-21T18:52:08Z")

</div>

![295652-look-at-function.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/1/a51438f1fb21b9822d9255705e59f24c9316eb04.png)

I’m trying to make a two handed VR weapon and I’m struggling with the Look At Function.  
in the picture you can see how I set it up.  
The Current Transform node has the weapon World Transform in it (this is the root of the actor)  
The Target Position node has the second grabbing hand World Location in it (this is the hand that the weapon should point at)  
The node returns a (0,0,0) rotation and I can’t figure out why it’s doing that.  
Any help is welcome!  
Don’t hesitate to ask for additional screenshots!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b58cf9e8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b58cf9e8](https://forums.unrealengine.com/u/anonymous_user_b58cf9e8)\
**Post date:** [January 21, 2020, 7:46pm UTC](https://forums.unrealengine.com/t/look-at-function-returns-0-0-0/460823/2 "2020-01-21T19:46:32Z")

</div>

I think you need to supply a direction to the look at vector input: Either use x-forward (1,0,0) or use a GetForwardVector node to get the actor’s forward vector.

---

<div class="post-metadata">

**Author:** ![EmileVDBerghe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EmileVDBerghe](https://forums.unrealengine.com/u/EmileVDBerghe)\
**Post date:** [January 21, 2020, 7:52pm UTC](https://forums.unrealengine.com/t/look-at-function-returns-0-0-0/460823/3 "2020-01-21T19:52:54Z")

</div>

That fixed the issue, thank you so much!
