Torpedoes are illogical, they would not work in the Trekverse.
Ships have tractor beams capable of toeing enormous ships, when torpedoes get fired all the targeted ship needs to do is fire a tractor beam in the direction of the torpedo. The computer could be programmed to do it automatically when a torpedo is detected inbound on sensors.
Torpedoes shouldn't even be capable of reaching an enemy ship.![]()
This seems to be another example of you trying to swat a mosquito with an x-ray laser.
If they could do this with tractor beams, they could do this with phasers. They can't do it with phasers (except in STXI, thank god!) so what in the world makes you think they can do it with tractor beams?
Actually, the problem seems to be that targeting of small fast moving objects is rather difficult even for Trek ships. Most of them don't bother targetting and simply envelop their entire ship in a DEFLECTOR field that blocks anything that comes close to them. Since a deflector shield is basically a tractor beam that repels things in all directions at once, your idea is pretty much covered already.