The Lorentz force between D0 and D6 branes in string and M(atrix) theory