public Vector2 FindClosestPointOnMovingLine(Vector2 target) { Vector2 p3 = target; Vector2 p2 = movePoints[movingIndex]; Vector2 p1 = movePoints[GetNearByIndex()]; Vector2 np = Vector2DUtils.ClosestOnLine(p1, p2, p3); return(np); }