Bullets do travel in a straight line for a limited distance. This all depends on the "load" of the cartridge, the weapon firing the bullet, and of course, after lack of velocity, gravity takes over. It's all basic physics. When velocity can not overcome gravity, the trajectory will change.