A linear version of a homopolar motor is a railgun. In this design, a large current is passed through a metal sabot across sliding contacts that are fed from two rails. The magnetic field this generates causes the metal to be projected along the rails