The 3-D Trajectories of Pulsars in the Galaxy