There are two different weapons known as \u201crailguns\u201d. One is a standard powder-fired artillery piece mounted on a railway car. These definitely did exist but were last used in World War 2. ... The other is a type of electromagnetic accelerator weapon that uses the Lorentz force to launch a projectile.