Changed the way relative velocities are calculated for docking.