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

Marks spans that are ledges as not-walkable.

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 MarkLedgeSpansNotWalkable(
	BuildContext context,
	int walkableHeight,
	int walkableStep
)
Public Function MarkLedgeSpansNotWalkable ( _
	context As BuildContext, _
	walkableHeight As Integer, _
	walkableStep As Integer _
) As Boolean
public:
bool MarkLedgeSpansNotWalkable(
	BuildContext^ context, 
	int walkableHeight, 
	int walkableStep
)

Parameters

context
BuildContext
The context to use for the operation
walkableHeight
Int32
The maximum floor to ceiling height that is considered still walkable. [Limit: > MinWalkableHeight]
walkableStep
Int32
The maximum allowed difference between span maximum's for the step to be considered walkable. [Limit: > 0]

Return Value

True if the operation was successful.

Remarks

A ledge is a span with a neighbor whose maximum is farther away than walkableStep. Example: Math.Abs(currentSpan.Max - neighborSpan.Max) > walkableStep

This method removes the impact of the overestimation of conservative voxelization so the resulting mesh will not have regions hanging in the air over ledges.

See Also