The idea is that you would accelerate towards the centre through the effects of gravity, and be decelerated by gravity when approaching the other side. Unfortunately this is not very practical, and along the way, you would pass through molten iron, intense pressure (3.5 million times our surface pressure) and temperatures that are believed to exceed 6,000 degrees C, about that of the surface of the sun.