public void LineAim(Vector2 realPos, object whoShoots, Vector2 origin, float barrelLenght, float reach) { RaySegment.Start = origin; RaySegment.End = realPos; RayEnlonged = new LineSegmentF(RaySegment.Start, RaySegment.Start + RaySegment.NormalizedWithZeroSolution() * reach); RayBarrel.Start = origin; RayBarrel.End = RaySegment.Start + RaySegment.NormalizedWithZeroSolution() * barrelLenght; RayDestination = CompareF.RaySegmentCalc(origin, RayEnlonged, whoShoots); }