A railgun or rail gun, sometimes referred to as a rail cannon, is a linear motor device, typically designed as a weapon, that uses electromagnetic force to launch high-velocity projectiles.