# Getting a vector from Angle and Distance.

**URL:** <https://forums.unrealengine.com/t/getting-a-vector-from-angle-and-distance/744417>\
**Category:** Programming & Scripting\
**Tags:** math, unreal-engine, vectors\
**Created:** [January 7, 2023, 9:59pm UTC](https://forums.unrealengine.com/t/getting-a-vector-from-angle-and-distance/744417 "2023-01-07T21:59:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koldmilk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/koldmilk/32/609398_2.png) [@Koldmilk](https://forums.unrealengine.com/u/Koldmilk)\
**Post date:** [January 7, 2023, 9:59pm UTC](https://forums.unrealengine.com/t/getting-a-vector-from-angle-and-distance/744417/1 "2023-01-07T21:59:57Z")

</div>

Hey All!

So I’ve hit a roadblock and it seems my math ability is not up to it. Can someone explain or show me in blueprints how I could get a Vector if I know the angle and distance of a certain actor.

Thanks again!

---

<div class="post-metadata">

**Author:** ![Koldmilk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/koldmilk/32/609398_2.png) [@Koldmilk](https://forums.unrealengine.com/u/Koldmilk)\
**Post date:** [January 7, 2023, 10:36pm UTC](https://forums.unrealengine.com/t/getting-a-vector-from-angle-and-distance/744417/3 "2023-01-07T22:36:27Z")

</div>

I’m probably going about this all wrong but what I’m doing is getting the distance and angle of a certain actor from my characters location. What I need is a Vector that would be 0,0 at my character.

If that makes sense?

---

<div class="post-metadata">

**Author:** ![pezzott1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pezzott1/32/1215068_2.png) [@pezzott1](https://forums.unrealengine.com/u/pezzott1)\
**Post date:** [January 8, 2023, 4:10am UTC](https://forums.unrealengine.com/t/getting-a-vector-from-angle-and-distance/744417/6 "2023-01-08T04:10:06Z")

</div>

> [@Koldmilk](#):
>
> Can someone explain or show me in blueprints how I could get a Vector if I know the angle and distance of a certain actor.

From the image below what you want is the vector variable and the math expression that converts the angle (in radians) and distance to a vector from you actor to the target. The rest is just for debug.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/4/1c434c64e750ebf77ba5a30185a9fe8fc9c82282.png)  
 ![VectorFromAngleDist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/3/7438ecda02b782dd6ce4d408277acab31cd20c34.gif)

Hope it helps.
