# 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:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leranias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leranias](https://forums.unrealengine.com/u/Leranias)\
**Post date:** [October 19, 2023, 1:55pm UTC](https://forums.unrealengine.com/t/turretrotation/1337762/1 "2023-10-19T13:55:14Z")

</div>

![Screenshot (9)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/e/77e6e5e09b896b4feb712b548d9d9c9a26e3aef6.jpeg) The turret snaps in Position i Am Learning the Blueprint system by myself but i dont no why the turret snaps in the Rotation my Language is hopefully good enough to speak so Thanks all For Reading and help ^^ My first Languange is German but english is good to i hope when you need more infos pls Tell me i will do what i can

---

<div class="post-metadata">

**Author:** ![Ryunawa1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ryunawa1/32/690884_2.png) [@Ryunawa1](https://forums.unrealengine.com/u/Ryunawa1)\
**Post date:** [October 19, 2023, 2:24pm UTC](https://forums.unrealengine.com/t/turretrotation/1337762/2 "2023-10-19T14:24:30Z")

</div>

Hi,  
I believe it is because of the value of the Delta Time input in the “Rinterp To” node, you need to get the time from the event tick.

---

<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.

---

<div class="post-metadata">

**Author:** ![Leranias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leranias](https://forums.unrealengine.com/u/Leranias)\
**Post date:** [October 19, 2023, 2:56pm UTC](https://forums.unrealengine.com/t/turretrotation/1337762/4 "2023-10-19T14:56:40Z")

</div>

im looking into it Right now i hope i can fix it its Frustrating Right now xD sooo not so nice  
The the other turret script that you showed seems interessting but i have to figuring out how it works waht he is doing there i have not the money to buy me Good Courses for blueprint so i have to puzzle the Learning pieces together can i put the tag system what i have into it ? the turret should ignore the player and the only way i found so far is to use tags or config the pawn seensing that the turret dont see the player

---

<div class="post-metadata">

**Author:** ![Leranias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leranias](https://forums.unrealengine.com/u/Leranias)\
**Post date:** [October 19, 2023, 3:12pm UTC](https://forums.unrealengine.com/t/turretrotation/1337762/5 "2023-10-19T15:12:58Z")

</div>

so i trying to make it so but i think thats not it

---

<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, 3:16pm UTC](https://forums.unrealengine.com/t/turretrotation/1337762/6 "2023-10-19T15:16:44Z")

</div>

This makes little sense:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/f/b1f4cd13cb63343426b64bfa4ba0155d27050dd8.jpeg)

At least in this very context. Instead, use the `Get Actor Rotation` node, as in my example above.

---

<div class="post-metadata">

**Author:** ![Leranias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leranias](https://forums.unrealengine.com/u/Leranias)\
**Post date:** [October 19, 2023, 3:36pm UTC](https://forums.unrealengine.com/t/turretrotation/1337762/7 "2023-10-19T15:36:04Z")

</div>

i i THANK YOU this node This was the error and this all the time xD ohhh my god i am so so glad it worked Thank you so much Really

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [November 18, 2023, 3:36pm UTC](https://forums.unrealengine.com/t/turretrotation/1337762/8 "2023-11-18T15:36:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
