Do you mean the way they're facing? Check if the directional vector is pointing approximately the same direction as the movement vector. You can get the movement vector by subtracting your position with the last position and normalize the vector.