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

Submits a new move request for the agent.

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 bool RequestMoveTarget(
	NavmeshPoint target
)
Public Function RequestMoveTarget ( _
	target As NavmeshPoint _
) As Boolean
public:
bool RequestMoveTarget(
	NavmeshPoint target
)

Parameters

target
NavmeshPoint
The target position.

Return Value

True if the target was successfully set.

Remarks

This method is used when a new target is set. Use AdjustMoveTarget(NavmeshPoint) when only small local adjustments are needed. (Such as happens when following a moving target.)

The position will be constrained to the surface of the navigation mesh.

The request will be processed during the next Update(Single).

See Also