Detect if player is inside Area of Effect?

Have a look at how dot product works:

Seems like the way to do here.

(rainbows/cones/donuts/etc)

  • cone is just a dot
  • rainbow would be dot and min | max range
  • donut is checking whether the target is in min | max range

What I’m struggling with is finding a way to detect whether or not the player is standing inside an AoE.

If you do not want to create uniquely shaped colliders, you’ll need to math it out. Sphere overlap nearby targets and then iterate to check whether they meet other criteria like the min range (donut hole) or dot product (cone).

1 Like