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

Marks non-walkable spans as walkable if their maximum is within walkableStep of a walkable neighbor.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public bool MarkLowObstaclesWalkable(
	BuildContext context,
	int walkableStep
)
Public Function MarkLowObstaclesWalkable ( _
	context As BuildContext, _
	walkableStep As Integer _
) As Boolean
public:
bool MarkLowObstaclesWalkable(
	BuildContext^ context, 
	int walkableStep
)

Parameters

context
BuildContext
The context to use for the operation
walkableStep
Int32
The maximum allowed difference between span maximum's for the step to be considered waklable. [Limit: > 0]

Return Value

True if the operation was successful.

Remarks

Example of test: Math.Abs(currentSpan.Max - neighborSpan.Max) < walkableStep

Allows the formation of walkable regions that will flow over low lying objects such as curbs, and up structures such as stairways.

See Also