Yeah OP, professor of electrical engineering here, what
>>11580592 said is pretty much correct.
To make your idea work you could take this design (pic related) and mount a strong magnet at the top, and have a solid metal ceiling for your vehicle. Just make sure the magnetic power is stronger than the gravitational force on your vehicle and you're good to go.