Dungeon Architect
17.0.0
|
Public Member Functions | |
PathCorridor (int maxPath) | |
void | Reset (int reference, Vector3 pos) |
Resets the path to the first polygon. More... | |
void | SetCorridor (Vector3 target, int[] path, int npath) |
The current corridor position is expected to be within the first polygon in the path. The target is expected to be in the last polygon. More... | |
bool | MovePosition (Vector3 npos, NavMeshQuery navquery) |
Move along the NavMeshQuery and update the position More... | |
int | FindCorners (Vector3[] cornerVerts, int[] cornerFlags, int[] cornerPolys, int maxCorners, NavMeshQuery navquery) |
bool | OptimizePathTopology (NavMeshQuery navquery) |
Use a local area path search to try to reoptimize this corridor More... | |
void | OptimizePathVisibility (Vector3 next, float pathOptimizationRange, NavMeshQuery navquery) |
Use an efficient local visibility search to try to optimize the corridor between the current position and the next. More... | |
int | MergeCorridorStartMoved (int[] path, int npath, int maxPath, int[] visited, int nvisited) |
Merge two paths after the start is changed More... | |
int | MergeCorridorStartShortcut (int[] path, int npath, int maxPath, int[] visited, int nvisited) |
Merge two paths when a shorter path is found More... | |
bool | MoveOverOffmeshConnection (int offMeshConRef, int[] refs, ref Vector3 startPos, ref Vector3 endPos, NavMeshQuery navquery) |
bool | FixPathStart (int safeRef, Vector3 safePos) |
Adjust the beginning of the path More... | |
bool | IsValid (int maxLookAhead, NavMeshQuery navquery) |
Determines whether all the polygons in the path are valid More... | |
int | GetFirstPoly () |
int | GetLastPoly () |
Properties | |
Vector3 | Pos [get] |
Vector3 | Target [get] |
int[] | Path [get] |
int | PathCount [get] |
Definition at line 20 of file PathCorridor.cs.
bool SharpNav.Crowds.PathCorridor.FixPathStart | ( | int | safeRef, |
Vector3 | safePos | ||
) |
Adjust the beginning of the path
safeRef | The starting polygon reference |
safePos | The starting position |
Definition at line 397 of file PathCorridor.cs.
bool SharpNav.Crowds.PathCorridor.IsValid | ( | int | maxLookAhead, |
NavMeshQuery | navquery | ||
) |
Determines whether all the polygons in the path are valid
maxLookAhead | The amount of polygons to examine |
navquery | The NavMeshQuery |
Definition at line 422 of file PathCorridor.cs.
int SharpNav.Crowds.PathCorridor.MergeCorridorStartMoved | ( | int[] | path, |
int | npath, | ||
int | maxPath, | ||
int[] | visited, | ||
int | nvisited | ||
) |
Merge two paths after the start is changed
path | The current path |
npath | Current path length |
maxPath | Maximum path length allowed |
visited | The visited polygons |
nvisited | Visited path length |
Definition at line 250 of file PathCorridor.cs.
int SharpNav.Crowds.PathCorridor.MergeCorridorStartShortcut | ( | int[] | path, |
int | npath, | ||
int | maxPath, | ||
int[] | visited, | ||
int | nvisited | ||
) |
Merge two paths when a shorter path is found
path | The current path |
npath | Current path length |
maxPath | Maximum path length allowed |
visited | The visited polygons |
nvisited | Visited path length |
Definition at line 307 of file PathCorridor.cs.
bool SharpNav.Crowds.PathCorridor.MovePosition | ( | Vector3 | npos, |
NavMeshQuery | navquery | ||
) |
Move along the NavMeshQuery and update the position
npos | Current position |
navquery | The NavMeshQuery |
Definition at line 115 of file PathCorridor.cs.
bool SharpNav.Crowds.PathCorridor.OptimizePathTopology | ( | NavMeshQuery | navquery | ) |
Use a local area path search to try to reoptimize this corridor
navquery | The NavMeshQuery |
Definition at line 183 of file PathCorridor.cs.
void SharpNav.Crowds.PathCorridor.OptimizePathVisibility | ( | Vector3 | next, |
float | pathOptimizationRange, | ||
NavMeshQuery | navquery | ||
) |
Use an efficient local visibility search to try to optimize the corridor between the current position and the next.
next | The next postion |
pathOptimizationRange | The range |
navquery | The NavMeshQuery |
Definition at line 213 of file PathCorridor.cs.
void SharpNav.Crowds.PathCorridor.Reset | ( | int | reference, |
Vector3 | pos | ||
) |
Resets the path to the first polygon.
reference | The starting polygon reference |
pos | Starting position |
Definition at line 87 of file PathCorridor.cs.
void SharpNav.Crowds.PathCorridor.SetCorridor | ( | Vector3 | target, |
int[] | path, | ||
int | npath | ||
) |
The current corridor position is expected to be within the first polygon in the path. The target is expected to be in the last polygon.
target | The target |
path | The polygon path |
npath | The path length |
Definition at line 102 of file PathCorridor.cs.