Just dig a deep hole perpendicular to the surface of earth. Later when we would be near core then may be repulsive forces of core may help us to move straight forward and come out to other part of the earth
The entire path would be like |_ shape.
Bt at the Junction we expect smooth curve.
In my opinion, can we think 'The core which is highly densed' as a nucleus of an atoms.
It always attract an opposite charged (-) ve particles towards its centre. But at a certain point it repels too. Like distance of closest approach.