Finding objects in an arc/pie ?

Hello =)

Im having trouble with my combat system , I made one simple before where it just casted a raycast and it worked , But now i noticed it was kinda buggy , and you could even hit yourself sometimes .
Well basicly I want to find all objects in an arc infront of me and send the damage input , yet i cant figure out how to do it :confused:
(Im a java script coder)

Thanks in advance , Utaelilya =)

Maybe you could use Physics.SphereCast, I never used it.
If you want to send damage around you, you could use
Vector3.distance(“startingpoint”.position, “endpoint”.position)