Method GetSideDistances
GetSideDistances(List<Rect>, Vector2, ref float, ref float)
Get the left and right x coordinates that a line would intersect from a given point to a list of obstacles.
Declaration
public static void GetSideDistances(List<Rect> nodes, Vector2 start, ref float minLeftX, ref float minRightX)
Parameters
Type | Name | Description |
---|---|---|
List<Rect> | nodes | Obstacles to test |
Vector2 | start | Start point for testing the ray |
float | minLeftX | Minimum left obstacle collision |
float | minRightX | Minimum right obstacle collision |