The naive way is use collisions to detect hits.
That is prone to errors, performance dependent.
Some brute-force it with multiple line traces per sword animation…
I just use anim notifies + manual calculations of distance between vectors and “collision flags” which is a Enum dictated by resulting dot product of the two vectors… I don’t use PhysX :s