# TurretRotation

**URL:** <https://forums.unrealengine.com/t/turretrotation/1337762>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [October 19, 2023, 1:55pm UTC](https://forums.unrealengine.com/t/turretrotation/1337762 "2023-10-19T13:55:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 19, 2023, 2:25pm UTC](https://forums.unrealengine.com/t/turretrotation/1337762/3 "2023-10-19T14:25:55Z")

</div>

- interpolation works with delta time
- your loop does not do anything

* * *

The most straightforward aiming could be done like so:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/6/b26bdd6af41875aaf595ee49b10237c5275182c5.png)

You provide target rotation value for the `rInterp` node to catch up to.

* * *

For something more nuanced, have a look here:

> [@Restrict Pawn's Rotation](https://forums.unrealengine.com/t/restrict-pawns-rotation/487856/3):
>
> Have a look at this one: Script to copy: [[Image from Gyazo]](https://gyazo.com/07facc8d174c94dd6103a641878c6929) Essentially, Dot Product is an answer to most angular issues. The yellow arrow indicates the turret’s front. Oh, and a TL is probably not the way to go about it unless you’re after something truly specific / unique / inflexible. Does not mesh well with target tracking in my head.

---

_[View the full topic](https://forums.unrealengine.com/t/turretrotation/1337762)._
