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

Returns a random point on the navigation mesh.

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 NavStatus GetRandomPoint(
	NavmeshQueryFilter filter,
	out NavmeshPoint randomPoint
)
Public Function GetRandomPoint ( _
	filter As NavmeshQueryFilter, _
	<OutAttribute> ByRef randomPoint As NavmeshPoint _
) As NavStatus
public:
NavStatus GetRandomPoint(
	NavmeshQueryFilter^ filter, 
	[OutAttribute] NavmeshPoint% randomPoint
)

Parameters

filter
NavmeshQueryFilter
The filter to apply to the query.
randomPoint
NavmeshPoint%
A random point on the navigation mesh.

Return Value

The NavStatus flags for the query.

Remarks

The search speed is linear to the number of polygons.

See Also