How about a vector-blade ability? The character sets up the angle, direction and distance, and the sword "slashes" in that direction by moving with the speed of a sword slash, on a route that perfectly follows the math given.

Since other obstacles are not included in the calculation, its path cannot be altered by them.