text: A railgun creates an electric current that flows up on rail, through the projectile and down the other rail.  This current sets up a magnetic field that propels the projectile down the rail away from the power supply.