now we compute the proper directional friction. the forward direction is parallel to the direcion of each segment motion.