Function NavmeshCut.GetContour

GetContour (List<Contour> buffer, Matrix4x4 matrix, float radiusMargin)

Contour of the navmesh cut.

Public
void GetContour (

List<Contour>

buffer

Will be filled with the result

Matrix4x4

matrix

All points will be transformed using this matrix. They are in world space before the transformation. Typically this a transform that maps from world space to graph space.

float

radiusMargin

The obstacle will be expanded by this amount. Typically this is the character radius for the graph. The MeshType.CustomMesh does not support this. If radiusExpansionMode is RadiusExpansionMode.DontExpand then this parameter is ignored.

)

Contour of the navmesh cut.

Fills the specified buffer with all contours. The cut may contain several contours which is why the buffer is a list of lists.