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

Loads a new path and target into the corridor.

Namespace: org.critterai.nav
Assembly: cai-nav (in cai-nav.dll) Version: 0.4.0.0 (0.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public void SetCorridor(
	Vector3 target,
	uint[] path,
	int pathCount
)
Public Sub SetCorridor ( _
	target As Vector3, _
	path As UInteger(), _
	pathCount As Integer _
)
public:
void SetCorridor(
	Vector3 target, 
	array<unsigned int>^ path, 
	int pathCount
)

Parameters

target
Vector3
The target location within the last polygon of the path.
path
array<UInt32>[]()[][]
The path corridor. [(polyRef) * pathCount]
pathCount
Int32
The number of polygons in the path. [Limits: 0 <= value <= MaxPathSize]

Remarks

The current position is expected to be within the first polygon in the path. The target is expected to be in the last polygon.

See Also