Top Down RPG sword swing detection

Hello,

currently working on an top down rpg.
movement, attacks, animation,… working all really well.

But different attacks have a different attack speed.
I made the hit detection with a box collider (trigger) + rigidboy (collision detection = continous) on the sword and on the player. Works really well until my attacks are too fast for the triggers =/

No i won’t want the attacks to be slower :wink:

Is there any alternative, detecting a swordhit?
I came up to Physics.SphereCast. This is working, but I really don’t know how to just to recognize the enemies in the area where the sword is swinging? Now it detects all enemys around me in the specific radius.

Has anyone did something similar? Any Solutions for it?

Thanks!

Thank you guys!
I made a OverlapSphere and then calculated the angle between me and and the enemy.