# 2 Part Turret Rotation to Look at Target

**URL:** <https://forums.unrealengine.com/t/2-part-turret-rotation-to-look-at-target/397931>\
**Category:** Blueprint\
**Tags:** rotator, look-at, unreal-engine, vector, UE4, Blueprint, question\
**Created:** [July 26, 2017, 6:51pm UTC](https://forums.unrealengine.com/t/2-part-turret-rotation-to-look-at-target/397931 "2017-07-26T18:51:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icedsnow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Icedsnow](https://forums.unrealengine.com/u/Icedsnow)\
**Post date:** [July 26, 2017, 6:51pm UTC](https://forums.unrealengine.com/t/2-part-turret-rotation-to-look-at-target/397931/1 "2017-07-26T18:51:58Z")

</div>

Hi, I have a Turret split into 2 pieces (Turret (yaw), and RotatorObj(roll)), I’m trying to get them to reliably rotate to look at the target they’re shooting at anywhere in 3d space, my current solutions rotations comes close most of the time but not every time, the LineTrace always points to the correct location. Can anyone help me get this working better?

Blueprint:

> **[Turret Look at Target posted by anonymous | blueprintUE | PasteBin For Unreal...](https://blueprintue.com/blueprint/pgosh02h/)**
>
> No description provided

Project Example:  
[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/1/37181bc506cf2d415b6c3f3886348f707dba96e2.jpeg) ](https://i.imgur.com/XhLfAUz.jpg)

I’m not worried just yet about clamping angles, just that it reliably looks where it’s supposed to.  
In short, how do I get my rotations to correctly line up with the Line Trace in every case? Thanks for any help.
