Test firing at the United States Naval Surface Warfare Center Dahlgren Division in January 2008 Ī railgun (also spelled rail gun) is a linear motor device, typically designed as a weapon, that uses electromagnetic force to launch high- velocity projectiles. For other uses, see Railgun (disambiguation).