# How do I calculate when a character is within an angle?

**URL:** <https://forums.unrealengine.com/t/how-do-i-calculate-when-a-character-is-within-an-angle/666783>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 11, 2022, 1:39am UTC](https://forums.unrealengine.com/t/how-do-i-calculate-when-a-character-is-within-an-angle/666783 "2022-10-11T01:39:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [October 11, 2022, 1:51am UTC](https://forums.unrealengine.com/t/how-do-i-calculate-when-a-character-is-within-an-angle/666783/2 "2022-10-11T01:51:10Z")

</div>

Hey captain TvZs!

Somebody else had this question and it’s a pretty great solution!

> [@How to get an angle between 2 Vectors?](https://forums.unrealengine.com/t/how-to-get-an-angle-between-2-vectors/280850):
>
> Is there a built in function to find the angle between 2 points (2D and 3D) for HUD and World? I love SOH CAH TOA, but l love clean code/blueprints more

---

_[View the full topic](https://forums.unrealengine.com/t/how-do-i-calculate-when-a-character-is-within-an-angle/666783)._
