Fixed distance miscalculation in Trajectory