Missiles and torpedoes are smart weapons.
They will avoid things like asteroids or other objects that do not have an electromagnetic signature.
You can fire missiles and torpedoes with (DEFAULT: RIGHT MOUSE BUTTON).
You can change the control assignment in the advanced options of the TACTICS PANEL.