Railguns use magnetic fields created by high electrical currents to accelerate a projectile to Mach 6, or 5,400 miles an hour.