# Projecting Vector using dot product help

**URL:** <https://forums.unrealengine.com/t/projecting-vector-using-dot-product-help/1877047>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [May 28, 2024, 1:53pm UTC](https://forums.unrealengine.com/t/projecting-vector-using-dot-product-help/1877047 "2024-05-28T13:53:02Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [May 28, 2024, 4:54pm UTC](https://forums.unrealengine.com/t/projecting-vector-using-dot-product-help/1877047/8 "2024-05-28T16:54:33Z")

</div>

It has so many applications that, once you know how it works, there’s no looking back. Some examples:

> [@Left Mouse button pressed and released equivalent in enhanced input (or drag and drop)](https://forums.unrealengine.com/t/left-mouse-button-pressed-and-released-equivalent-in-enhanced-input-or-drag-and-drop/1633884/18):
>
> Here’s some script allowing for picking up stuff and moving it in a specific plane only we determine ourselves manually: The green debug plane visualises what’s going on. In short: shoot a beam (trace) from the screen centre towards the projected mouse cursor, when it eventually intersects that plane (which is infinitely large), place the actor at the intersect world coordinate. If I change the normal: You could derive this Normal from the actor itself instead:

> [@Line Trace from a 3d point to mouse location](https://forums.unrealengine.com/t/line-trace-from-a-3d-point-to-mouse-location/237661/3):
>
> You’re tracing with a fixed distance of 500, replacing the projection’s X with a fixed value. It’s actually hard to imagine how that would look like, a strangely distorted / twisted undulating surface mayhaps? cool, for sure. I want this trace to stay on the same plane as my character, so the X value of the start point & end point should be the same. Consider the following: green_circle create a virtual plane where the character is and point it towards X (Plane Normal 1,0,0) …

---

_[View the full topic](https://forums.unrealengine.com/t/projecting-vector-using-dot-product-help/1877047)._
