# Dot product not dot producting

**URL:** <https://forums.unrealengine.com/t/dot-product-not-dot-producting/1906093>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [June 17, 2024, 8:59am UTC](https://forums.unrealengine.com/t/dot-product-not-dot-producting/1906093 "2024-06-17T08:59:09Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [June 17, 2024, 9:27am UTC](https://forums.unrealengine.com/t/dot-product-not-dot-producting/1906093/6 "2024-06-17T09:27:29Z")

</div>

> I have this now but I’m still not sure if it’s 100% accurate?

You may need to elaborate on that.

* * *

You could try:

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

Shaves some nodes off the script.

* * *

Not exactly sure what the ideal end result is but you could try this slightly more versatile approach:

> [@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/dot-product-not-dot-producting/1906093)._
