|
| static bool | TryMapPoint (Vector2 position, out NavSegmentPositionPointer pointer) |
| | Tries to map a point to a navigation position. The distance a point can be away from the nearest segment is specified by PathBerserker2dSettings.PointMappingDistance More...
|
| |
| static bool | TryMapPoint (Vector2 position, NavSegmentPositionPointer pointer, out NavSegmentPositionPointer result) |
| | Tries to map a point to a navigation position. Like TryMapPoint, but uses passed in pointer to speed up search. More efficient, if you want to track a mapped position over time. More...
|
| |
|
static Vector2 | GetRandomPointOnGraph () |
| | - Returns
- Random point on NavGraph. Might not be reachable.
|
| |
| static void | PathTo (PathRequest pathRequest) |
| | Enqueues a PathRequest . The path will be solved async. Use the PathRequest object to check its status. More...
|
| |
| static List< NavSubsegmentPointer > | BoxCast (Rect rect, float rotation, float filterFromAngle, float filterToAngle) |
| | Get all segments intersecting a rotated box. Segments can additionally be filtered by angle. More...
|
| |
| static bool | TryFindClosestPointTo (Vector2 position, NavAgent segmentFilter, out NavSegmentPositionPointer pointer) |
| | Similar to TryMapPoint, except it searches in a larger radius. (Distance controlled by PathBerserker2dSettings.ClosestToSegmentMaxDistance) This makes this function performance heavy. More...
|
| |
Singleton managing the global NavGraph instance.
Is instantiated automatically on scene load.
Use it to access the NavGraph, which is the graph the pathfinder works on.