# Conic/Cone shaped abilities

**URL:** <https://forums.unrealengine.com/t/conic-cone-shaped-abilities/658738>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 29, 2022, 4:58am UTC](https://forums.unrealengine.com/t/conic-cone-shaped-abilities/658738 "2022-09-29T04:58:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 29, 2022, 7:18am UTC](https://forums.unrealengine.com/t/conic-cone-shaped-abilities/658738/2 "2022-09-29T07:18:15Z")

</div>

> [@ElectricBloo](#):
>
> Is this a good way of approaching this? I feel like I may be overthinking it.

Sounds about right.

Check this out:

> [@How to create God of War targetting system?](https://forums.unrealengine.com/t/how-to-create-god-of-war-targetting-system/210302/2):
>
> [The Dot Product](https://en.wikipedia.org/wiki/Dot_product) of 2 directional vectors will be in range of -1 to 1. Anything that’s above 0 is in front of you, anything below 0 is behind (and every other value in between matters, too!) I grab all the actors around the player using a Sphere Overlap (as in the original suggestion) and loop through the elements of the array, checking my angles - Dot player’s forward and the direction to each target. For dot values greater than .5 I mark the target, and add that actor to the array…

And this, too:

> [@Detect if player is inside Area of Effect?](https://forums.unrealengine.com/t/detect-if-player-is-inside-area-of-effect/236924/19):
>
> Sounds a bit as if the directions were not calculated correctly. Perhaps there’s an Z discrepancy? Hard to tell without seeing it. Best to discard Z; it could look like this: Drawing Xs on targets that would get hit with the math.

---

_[View the full topic](https://forums.unrealengine.com/t/conic-cone-shaped-abilities/658738)._
