[This is preliminary documentation and is subject to change.]

The PathCorridor type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
Finalize()()()()
Destructor.
(Overrides Object..::..Finalize()()()().)
FindCorners(CornerData)
Finds the corners in the corridor from the position toward the target. (The straightened path.)
GetData(PathCorridorData)
Loads the corridor data into the provided PathCorridorData buffer.
GetPath(array<UInt32>[]()[][])
Obtains a copy of the corridor path.
GetPathCount()()()()
The number of polygons in the corridor path.
IsValid(Int32)
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.
Move(Vector3, Vector3)
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.
MovePosition(Vector3)
Moves the position from its current location to the desired location, adjusting the corridor as needed to reflect the new position.
MoveTarget(Vector3)
Moves the target from its curent location to the desired location, adjusting the corridor as needed to reflect the change.
OptimizePathTopology(Boolean)
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.
ReleaseLocals(PathCorridor)
Released the references to the query and filter.
RequestDisposal()()()()
Immediately frees all unmanaged resources allocated by the object.
Reset(NavmeshPoint)
Resets the corridor to the specified position.
ResizeCornerBuffer(Int32)
Resizes the corner buffers.
SetCorridor(Vector3, array<UInt32>[]()[][], Int32)
Loads a new path and target into the corridor.

See Also