In the Starcraft 2 campaign, there is a unit called the “diamondback”. It’s a sort of hovertank, and it is useful for hunting down other vehicles because it is armed with dual “rail guns” that can fire while it moves. In the game, the rail guns are depicted as some sort of energy weapon: they fire hot blue beams at the target. This disturbed me because rail guns actually do exist, and they most certainly don’t fire blue energy beams!
So what’s a real rail gun and how do they work? I’m so glad you asked!