[This is preliminary documentation and is subject to change.]
The PathCorridor type exposes the following methods.
XNA Framework Only
.NET Compact Framework Only
Finds the corners in the corridor from the position toward the target. (The straightened path.)
Loads the corridor data into the provided PathCorridorData buffer.
Obtains a copy of the corridor path.
The number of polygons in the corridor path.
Checks the corridor path to see if its polygon references remain valid.
|LoadLocals(PathCorridor, NavmeshPoint, NavmeshQuery, NavmeshQueryFilter)|
Sets the specified resources and resets the corridor.
Moves the position and target from their curent locations to the desired locations.
|MoveOverConnection(UInt32, array<UInt32>(), Vector3, Vector3)|
Moves over an off-mesh connection.
Moves the position from its current location to the desired location, adjusting the corridor as needed to reflect the new position.
Moves the target from its curent location to the desired location, adjusting the corridor as needed to reflect the change.
Attempts to optimize the path using a local area search. (Partial replanning.)
|OptimizePathVisibility(Vector3, Single, Boolean)|
Attempts to optimize the path if the specified point is visible from the current position.
Released the references to the query and filter.
Immediately frees all unmanaged resources allocated by the object.
Resets the corridor to the specified position.
Resizes the corner buffers.
|SetCorridor(Vector3, array<UInt32>(), Int32)|
Loads a new path and target into the corridor.